本文共 238 字,大约阅读时间需要 1 分钟。
一:解决Ubuntu能ping通却ssh不上
1.在服务器中修改sshd服务的配置文件:打开/etc/ssh/sshd_config将passwdauthentication改成no,将pubkeyauthentication改成yes,然后保存配置文件
2.以root用户登录Linux,打开终端,运行: /etc/init.d/sshd restrat 重启服务器的ssh服务即可生效
转载于:https://blog.51cto.com/13691843/2171895