Setting Up FTPS on Ubuntu 12.04 LTS (Precise Pangolin) With VSFTPD

This is a quick ‘n’ dirty version of an excellent post on http://ubuntuforums.org/showthread.php?t=518293 by epimeteo which describes the in-depth configuration options of VSFTPD, so if you’re an advanced user you should probably go and read it.

However, if all you want is a quick FTPS server and don’t particularly care about user restrictions, IP or connection restrictions this is the post for you…

Install VSFTPD

apt-get install vsftpd

Edit the config file

nano -w /etc/vsftpd.conf

Within the config file make the settings read as follows (uncomment as appropriate)

anonymous_enable=NO
local_enable=YES
write_enable=YES

Add some new settings at the bottom to enforce the SFTP part

ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES

Save it and then start the VSFTPD server

service vsftpd start

That’s all there is to it – you should now be able to login to your server using SFTP!