You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
in order to allow access to FTP services from external systems,
we have to open port 21, where the FTP daemons are listening as follows:
firewall-cmd --zone=public --permanent --add-port=21/tcp
firewall-cmd --zone=public --permanent --add-service=ftp
firewall-cmd --reload
(6) Now you can connect to FTP
now you can connect FTP and user is restricted with home directory only.
But in sftp user is not restricted so we have to turn off SFTP
(7) TO restrict SFTP Add in /etc/ssh/sshd_config file
Match User USERNAME,USERNAME2
PasswordAuthentication no
This will also deny SSH connection from that users.
(8) Restart SSHD service with
sudo systemctl restart sshd OR sudo service sshd restart