Computer man
FTP SERVER

vsftpd (Very Secure File Transport Protocol Daemon) is a secure, fast FTP server for Unix/Linux systems.

Install vsftpd:-

[root@server ~]# yum install vsftpd ftp -y

Configure vsftpd

Edit vsftpd configuration file /etc/vsftpd/vsftpd.conf

[root@server ~]# vi /etc/vsftpd/vsftpd.conf
## Disable anonymous login ##
anonymous_enable=NO

## Uncomment ##
ascii_upload_enable=YES
ascii_download_enable=YES

## Add at the end of this file ## <>bruse_localtime=YES

Enable and start the vsftpd service

[root@server ~]# systemctl enable vsftpd
[root@server ~]# systemctl start vsftpd

Allow the ftp service and port 21 via firewall

[root@server ~]# firewall-cmd --permanent --add-port=21/tcp
success
[root@server ~]# firewall-cmd --permanent --add-service=ftp
success
[root@server ~]# firewall-cm --reload

update the SELinux boolean values for FTP service

[root@server ~]# setsebool -P ftp_home_dir on

Create FTP users

By default, root user is not allowed to login to ftp server for security purpose. So, Create a normal user

[root@server ~]# useradd sam
[root@server ~]# passwd sam

Client side configuration:-

Try to log in to the FTP server with user sam

[root@client ~]# ftp 192.0.0.20
Please email me if you face any issue.

Name:

Email:

Comments:

views
PHP Hits Count