A Scenario Which Depict Vsftpd

I downloaded vsftpd, install and config based on this link How to Set up an FTP Server in Ubuntu Linux On my Ubuntu 12.04. But the question is how to test that?

I want to learn how to use vsftpd and I am looking for an easy graphical step by step scenario to learn that. Like a scenario which include client and server by using virtual box?

How to download a file from Ubuntu_2 in Ubuntu_1. Which both are virtual OS in Virtual box

0

4 Answers

Server side

  1. Check service status

    sudo service vsftpd status
    
  2. Check its running processes

    ps ax | grep vsftpd
    

    (Command to: list all processes then filter output for vsftpd line)

    or you can use a loop to monitor its processes:

    while sleep 1 ; do clear ; ps ax | grep vsftpd ; done
    

    (Command to: wait 1 second, clear shell screen, list all processes then filter output for vsftpd line, loop again as sleep always return succefully)

  3. Check port status related to vsftpd process

    netstat -lnp | grep vsftpd
    

    (Command to: list all listening ports with port number and process id (PID) owning it then filter output for vsftpd line)

  4. Monitor server log (tail with -f to follow log updates and monitor vsftpd)

    $ tail -f /var/log/vsftpd.log
    Fri Apr 25 18:43:28 2014 [pid 2026] CONNECT: Client "127.0.0.1"
    Fri Apr 25 18:45:01 2014 [pid 2025] [sneetsher] OK LOGIN: Client "127.0.0.1"
    
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.