Xshell连接Ubuntu时提示SSH服务器拒绝了密码

树叶云

Xshell使用root用户连接Ubuntu 14.04时,提示SSH服务器拒绝了密码,请再试一次。

今天,新安装的服务器Ubuntu 14.04使用root用户连接时一直提示连接不上,使用其他普通用户则没有问题,后来了解到是ssh配置文件问题导致的。

修改:

vim /etc/ssh/sshd_config

找到:

# Authenticaton

LoginGraceTime 120

PremitRootLogin without passwd

StrictModes yes

修改为:

# Authenticaton

LoginGraceTime 120

PremitRootLogin yes

StrictModes yes

然后重启ssh服务:

# /etc/init.d/ssh restart

此时使用root用户远程登录就没问题了。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/220106.html<

(0)
运维的头像运维
上一篇2025-04-14 10:16
下一篇 2025-04-14 10:18

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注