一、vim /etc/ssh/sshd_configvim
二、找到#Port 22一段,這裏是標識默認使用22端口,修改成以下: Port 22 Port 1234ssh
三、systemctl restart sshd.servicerest