Pages

Tuesday, September 8, 2015

Installing FTP server on Linux

I need an FTP server running on my computer for configuration file backup.
Below the instructions how to setup vsFTPd server on Linux Mint , in stand alone mode.


Install the vsftp deamon
sudo apt-get install vsftpd

Make a backup of the default configuration file
sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.backup 



Edit the configuration file
sudo nano /etc/vsftpd.conf

Allow the below :

For running in standalone
listen=YES

Allow local users to log in
local_enable=YES

Disable anonymous FTP
anonymous_enable=NO

Enable any form of FTP write command.
write_enable=YES


Restart vsFTPd server
sudo service vsftpd start


Check if vsFTPd is running
$ netstat -a | grep ftp
tcp        0      0 *:ftp                   *:*                     LISTEN     

Also using the service utility
$ sudo service vsftpd status
vsftpd start/running, process 7329


Verify FTP file transfer
$ ftp localhost
ftp> get testfile.txt
local: testfile.txt remote: testfile.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for testfile.txt (0 bytes).
226 Transfer complete.
ftp> quit
221 Goodbye.  

No comments: