Enable SFTP On VSFTPD In Ubuntu

Enabling SFTP is very easy and makes FTP protocol a lot more secure than traditional FTP because passwords are not sent in plain text which is susceptible to a lot of things such as packet sniffers, man-in-the-middle, etc.

Assuming VSFTPD has been installed (in the default location) edit the file /etc/vsftpd.conf and check there are security certificates installed and configured.

There are two entries which start with either:
dsa_cert_file
dsa_private_key_file

or
rsa_cert_file
rsa_private_key_file

Each specifying a file path to where the key and certificates are located.

The last step is to enable SFTP by adding the following line:
ssl_enable=YES
Save and exit the file and restart the FTP server sudo /etc/init.d/vsftpd restart

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Linux, Security and tagged , , , , , , , . Bookmark the permalink.

One Response to Enable SFTP On VSFTPD In Ubuntu

Leave a Reply

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

All comments must go through an approval and anti-spam process before appearing on the website. Please be patience and do not re-submit your comment if it does not appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.