Install vsftpd with SSL/TLS in Ubuntu Server
Read Time:1 Minute, 12 Second

Install vsftpd with SSL/TLS in Ubuntu Server

0 0
0 0

Introduction to FTP with SSL

Most of the production environment is not allowed to use FTP service instead we need to replace with SFTP or VSFTPD with SSL. Let us see how to implement VSFTPD with SSL/TLS by following below step by step guide.

Looking for setting up a secured SFTP server?

Package Installation

Install the vsftpd package using

#sudo apt-get install vsftpd

Once done with installation continue to install the OpenSSL package which provides the SSL/TLS options.

#sudo apt-get install openssl

Generate Certificate files

Navigate to SSL directory to create certificate files

# sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/vsftpd.pem -out /etc/ssl/vsftpd.pem

Then change the permission for certificate file to access only by the root user

# sudo chmod 600 vsftpd.pem

Configure VSFTPD server

Edit the configuration using vim as follows

# sudo vim /etc/vsftpd.conf

Change the location of certificate file under below directive

# rsa_cert_file=/etc/ssl/vsftpd.pem
# rsa_private_key_file=/etc/ssl/vsftpd.pem

Then enable the SSL for vsftpd and force the local user to use SSL

# ssl_enable=yes
# force_local_data_ssl=YES
# force_local_logins_ssl=YES
# pam_service_name=vsftpd

Restarting the Service

Restart the service and login from FileZilla to test the above configuration changes.

# sudo service vsftpd restart

That’s it we have completed installing a secure FTP with SSL/TLS.

Install vsftpd with SSL/TLS in Ubuntu Server 1

About Post Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published.

Backup Linux filesystem with Ruby Backup Gem Previous post Backup Linux filesystem using Ruby Backup Gem
Setting up SFTP with chroot 4 Next post Setting up SFTP with chroot

Subscribe

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!