vim /etc/ssh/sshd_config 默认在第17行修改:Port 2222 修改后,重启sshd:systemctl restart sshd
修改ssh默认端口号
原文:https://www.cnblogs.com/jarno/p/11764315.html