How to setup FTP server with vsftpd on CentOS 7?

How to setup FTP server with vsftpd on CentOS 7?

Installing vsftpd on CentOS 7. The vsftpd package is available in the default CentOS repositories. To install it, issue the following command: sudo yum install vsftpd. Once the package is installed, start the vsftpd daemon and enable it to automatically start at boot time: sudo systemctl start vsftpd sudo systemctl enable vsftpd.

How to check if vsftpd service is running?

Now, check whether the vsftpd service is running with the following command: As you can see, the vsftpd service is not running or inactive. To start the vsftpd service, run the following command: Now, check the status of the vsftpd service again. As you can see, vsftpd service is running.

Can a client connect to a FTP server?

At this point your FTP server is fully functional and you should be able to connect to your server with any FTP client that can be configured to use TLS encryption such as FileZilla . By default, when creating a user, if not explicitly specified the user will have SSH access to the server.

How to install lftp on CentOS 7 Linux?

lftp is available in the official package repository of CentOS 7. To install lftp, run the following command: $ sudo yum install lftp Now, press y and then press to continue.

How to configure vsftpd to allow root logging?

Edit user_list and ftpusers and comment out “root”. For those (like me) using VSFTPD on Ubuntu server in mid-2013, it appears that root is allowed to login via SFTP by default, no special changes necessary. And comment out the line with root on it by placing a # at the start. Save the file, and reloading the server is not even necessary.

How to disable SSH access to FTP server?

By default, when creating a user, if not explicitly specified the user will have SSH access to the server. To disable shell access, we will create a new shell which will simply print a message telling the user that their account is limited to FTP access only. Run the following commands to create the /bin/ftponly shell and make it executable: