how to change ssh port linux

preview_player
Показать описание
SSH is typically used to log into a remote machine and execute commands
SSH or Secure Shell is a cryptographic network protocol for operating network services securely over an unsecured network.

Change SSH PortNumber Linux :
Backup Current SSH configuration.
Change SSH service port.
Allow new SSH port on SELinux.
Open SSH port on Firewalld.
Restart sshd service
cd /etc/ssh
vim sshd_config
semanage port -a -t ssh_port_t -p tcp [Selinux -PortNumber]
firewall-cmd --zone=public --permanent --add-port=3222/tcp [Firewall add -PortNumber]
when firewall port add must be reload this
Must be add this port now add this port Selinux
Firewall port Number add :
systemctl restart sshd
we are access used ssh portnumber
Рекомендации по теме