Xshell连接linux(deepin)时提示ssh服务器拒绝了密码,请再试一次

来源:互联网 发布:丧尸变脸软件 编辑:程序博客网 时间:2024/04/29 05:32

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

vim /etc/ssh/sshd_config

找到

# Authentication:LoginGraceTime 120PermitRootLogin prohibit-passwordStrictModes yes

改成

# Authentication:LoginGraceTime 120PermitRootLogin yesStrictModes yes

然后输入命令

/etc/init.d/ssh restart 

重启ssh服务即可。

3 1
原创粉丝点击