1、vim /etc/ssh/sshd_config 2、找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 22 Port 1234 3、systemctl restart sshd.service 相关文章: