====
Port 2222
====
2. systemctl restart sshd.service
3. By default, SELinux only allows SSH on the port 22. We must change this to our new port. In our example, we are using 2222 but you should replace this number with the number of your port in the below command, which uses semanage port to configure ports in the SELinux policy:
semanage port -a -t ssh_port_t -p tcp 22224. firewall-cmd --permanent --zone=public --add-port=2222/tcp
5. firewall-cmd --reload
#https://www.globo.tech/learning-center/change-ssh-port-centos-7/
沒有留言:
張貼留言