Tuesday, March 1, 2022

How To Configure FTP Vsftpd To Use SSL/TLS On Rocky Linux 8.5

 in This Tutorial you will Learn " How To Configure FTP Vsftpd To Use SSL/TLS On Rocky Linux 8.5"
vsftpd is the Very Secure File Transfer Protocol Daemon.
Secure Sockets Layer (SSL) and Transport Layer Security (TLS) are cryptographic security protocols.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf -y install vsftpd
cd /etc/pki/tls/certs ; openssl req -x509 -nodes -newkey rsa:2048 -keyout vsftpd.pem -out vsftpd.pem -days 3650
chmod 600 vsftpd.pem ; gedit  /etc/vsftpd/vsftpd.conf &>/dev/null

rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
ssl_enable=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
pasv_enable=YES
pasv_min_port=60000
pasv_max_port=60100
systemctl restart vsftpd ; systemctl status vsftpd
_________________________________________________________________________________________
FTP Client (Rocky Linux)-
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
nano ~/.lftprc
# create new
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no

lftp -u debs 192.168.1.20
!pwd

FTP Client (Windows 11) -
_________________________________________________________________________________________

No comments:

Post a Comment