首页 帮助中心 香港服务器租用 Xshell连接Ubuntu时提示SSH服务器拒绝了密码
Xshell连接Ubuntu时提示SSH服务器拒绝了密码
时间 : 2023-03-23 09:37:17 编辑 : 华纳云 阅读量 : 396

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

华纳云 推荐文章
Ubuntu系统上生成SSH密钥的步骤 Ubuntu系统下Apache日志轮转如何设置 盘点老旧Ubuntu系统加速技巧 Ubuntu系统中删除PPA存储库的操作方法 Ubuntu系统管理apt-get命令精选 服务器Ubuntu系统安装git时会提示错误? Ubuntu系统中删除有问题PPA存储库 Ubuntu系统安装垃圾清理工具 BleachBit详细步骤 Ubuntu系统中ntpd服务启动失败的原因 Ubuntu系统怎么安装搜狗输入法
活动
客服咨询
7*24小时技术支持
技术支持
渠道支持