sudo vim /etc/ssh/sshd_config # 修改Port后重启 sudo service ssh restart # 查看监听是否正确 sudo netstat -tunlp | grep ssh