vi /etc/ssh/sshd_config
# Port 22
service sshd restart
Linux(CentOS 7) 新增或修改 SSH默认端口
原文:https://www.cnblogs.com/comexchan/p/10631690.html