1、vim /etc/ssh/sshd_config
2、找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 22 Port 1234
3、systemctl restart sshd.service
Linux修改默认ssh端口
原文:https://www.cnblogs.com/felix-h/p/11045878.html