关于“Xshell连接linux(deepin)时提示ssh服务器拒绝了密码,请再试一次”的问题

用Xshell root连接时显示ssh服务器拒绝了密码,应该是应该是sshd的设置不允许root用户用密码远程登录 
修改 /etc/ssh/sshd_config文件,注意,安装了openssh才会有这个文件,如果文件不存在请检查是否安装了openssh。

找到

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

改成:

然后输入命令:

/etc/init.d/ssh restart 

重启服务器即可

 

 

  

 

posted @ 2017-03-21 19:30  亲爱的不二999  阅读(5610)  评论(0编辑  收藏  举报