一、vim /etc/ssh/sshd_configvim
二、找到#Port 22一段,这里是标识默认使用22端口,修改成以下: Port 22 Port 1234ssh
三、systemctl restart sshd.servicerest