FTP server on Raspberry Pi

You probably shouldn’t do this.

Ftp is pretty insecure, credentials are sent in cleartext and data is sent unencrypted. You are better off using sftp is almost all cases, ssh is installed on the Pi by default.

Having said that, ftp on the Pi is much faster due to the lack of encryption and sometimes you just have to fall back to the lowest common denominator, in my case that’s an IP camera made by Foscam that only supports ftp.

OK so now that you are aware you will have to take extra security measures to secure your network if you set up ftp, lets get on with it!

sudo apt-get update
sudo apt-get install vsftpd

 

When it finishes you will have a running ftp server.
Now we need to configure it.

sudo nano /etc/vsftpd.conf

Look through the file and change

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
#local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES
#

to

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#

This will disable anonymous users, allow local users to log in and enable the writing of files.

Save the file and exit nano, then restart the deamon.

sudo /etc/init.d/vsftpd restart

This should allow you to ftp into the Pi.

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *