SecureCRT无法连接Linux虚拟机,返回账号密码错误Password Authentication Failed
2016-11-09 00:15
1711 查看
今天安装debian8虚拟机后,用securecrt通过ssh登录系统时返回登录账号密码错误,但是本人该账号密码可以在VMware成功登录系统。
错误信息如下:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/3fe8f6c79a5229cce08c35b59dfc0828)
在端口号,IP地址,防火墙都确认没有问题的情况,后来发现原来是ssh的配置文件出问题了,解决方法:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/a12543fe7aa1767c6339eeb312659d13)
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/08d92053e229b21f80c0150119323994)
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/15d05a30386bff59edd7e52a215f06ff)
查了下资料,找到下面一段话
意思说,如果PermitRootLogin设置为without-password后,密码验证对于root用户是无效,所以导致securecrt无法登录。
学艺不精,如觉有异,欢迎指正正及交流。
错误信息如下:
Password Authentication Failed Password authentication failed.Please verify that the username and password are correct.
在端口号,IP地址,防火墙都确认没有问题的情况,后来发现原来是ssh的配置文件出问题了,解决方法:
#进入目录 cd /etc/ssh/ vim sshd_config #找到PermitRootLogin without-password #将without-password修改为yes #重启ssh服务 service ssh restart #再用securecrt就能成功登录
查了下资料,找到下面一段话
PermitRootLogin Specifies whether root can log in using ssh(1). The argument must be “yes”, “without-password”, “forced-commands-only”, or "no”. The default is “yes”. If this option is set to “without-password”, password authentication is disabled for root. If this option is set to “forced-commands-only”, root login with public key authentication will be allowed, but only if the command option has been specified (which may be useful for taking remote backups even if root login is normally not allowed). All other authentication methods are disabled for root. If this option is set to “no”, root is not allowed to log in.
意思说,如果PermitRootLogin设置为without-password后,密码验证对于root用户是无效,所以导致securecrt无法登录。
学艺不精,如觉有异,欢迎指正正及交流。
相关文章推荐
- 密码正确,SSH无法登陆 Password authentication failed /Permission denied, please try again.
- SecureCRT 访问Linux虚拟机(Oracle VM VirtualBox) 返回超时密码错误 解决办法
- 解决由于RDPDD.dll failed to load错误事件而导致无法连接远程桌面的方法
- SecureCRT无法连接Vmware下的Linux虚拟机
- SecureCRT ssh连接一直提示密码错误
- linux 本地账号密码无法登陆(shell可以登录),一直返回 登陆的login界面
- 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立 安全连接。错误:“SQL Server 返回的响应不完整。连接已关闭
- 解决eclipse存储git密码时Writing to secure store failed No password provided.错误
- 账号密码登录(Account password authentication)
- 在启动Mongo时我出现了错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- Mysql连接错误:Access denied for user 'root'@'localhost' (using password:YES)解决方案以及WINDOWS下修改Mysql密码
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- macbook pro 共享WiFi 手机连接总是提示密码错误的--“Wi-Fi”有自分配的 IP 地址“169.254.54.96”,将无法接入互联网。
- oracle提示 ORA-12154: TNS: 无法解析指定的连接标识符 OCIEnvCreate 失败, 返回代码为-1,但错误消息文本不可用
- (诊断)解决GitHub使用双因子身份认证“Two-Factor Athentication”后无法git push 代码的“fatal: Authentication failed for ...”错误
- 开启mongod服务(Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接)
- 记录一次低级错误――secureCRT无法连接虚拟机
- 局域网共享保存了错误的账号密码导致无法访问,怎么取消
- Mysql 服务无法启动 服务没有报告任何错误(mysql5.7安装及修改密码,修改远程连接数据库)