关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

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

发布时间:2023-03-23 16:12:49
1491984010112764.jpg

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用户远程登录就没问题了。



/template/Home/8a/PC/Static