1. 关闭防火墙 sudo ufw disable 2. 重启ssh服务 sudo /etc/init.d/ssh restart 3.重启 转载于:https://www.cnblogs.com/yushengzhou/p/9857773.html