Open rbo opened 1 year ago
vim /etc/ssh/sshd_config
[root@pluto ~]# grep 'Port ' /etc/ssh/sshd_config Port 22 Port 1984
firewall-cmd --zone public --add-port 1984/tcp --permanent && firewall-cmd --reload
semanage port -a -t ssh_port_t -p tcp 1984
systemctl reload sshd
$ ss -tulpn | grep 1984 tcp LISTEN 0 128 0.0.0.0:1984 0.0.0.0:* users:(("sshd",pid=1349,fd=3)) tcp LISTEN 0 128 [::]:1984 [::]:* users:(("sshd",pid=1349,fd=4))
vim /etc/ssh/sshd_config
Resultfirewall-cmd --zone public --add-port 1984/tcp --permanent && firewall-cmd --reload
semanage port -a -t ssh_port_t -p tcp 1984
systemctl reload sshd