ssh root ssh localhost无需密码,但是普通用户登陆需要密码的解决办法!
来源:互联网 发布:全局优化算法 编辑:程序博客网 时间:2024/05/17 02:33
遇到此问题甚是郁闷,网上所有问题搜索遍了,都未能解决此问题,万分沮丧.
先说下别人的方法比如:
1.更改sshd_config文件中的相关属性(虽然对我没什么大的用处,不过其中谈到一点,我十分同意(个人观点),就是要关闭root)
2.更改authorized_keys的权限, chmod 600 authorized_keys;(大多数是这种权限问题,赞同)
...
上述方法对我没有任何作用,甚是难过。
最后我倒置过来倒置过去,发现是我以前改过用户的权限,将此用户的权限和root用户的权限设置成一样,问题解决了,纠结...
以此警戒自己,同时也希望能帮助到其他的童鞋....(*^__^*) 嘻嘻……
最后贴下我出现问题的log的一小部分
debug3: authmethod_lookup publickeydebug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/xxx/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/xxx/.ssh/id_dsa
debug3: no such identity: /home/xxx/.ssh/id_dsa
debug1: Trying private key: /home/xxx/.ssh/id_ecdsa
debug3: no such identity: /home/xxx/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
其实说到底还是文件权限的问题,大家细心思考就好。
- ssh root ssh localhost无需密码,但是普通用户登陆需要密码的解决办法!
- ssh无需密码登陆配置
- ssh localhost, ssh免密码登陆localhost
- ssh无密码登陆localhost
- ssh localhost 免密码登陆
- git设置了ssh登陆但是任然需要密码,解决办法!!
- centos 7.0 ssh 登陆localhost需要输入密码
- mac电脑设置 ssh localhost免密码登陆 hadoop需要
- 普通用户ssh无密码登陆失败
- ssh 免密码登陆 ssh localhost 还要输入密码
- 【hadoop】ssh localhost 免密码登陆
- ssh localhost 登陆时出现的密码问题
- SSH 设置无需密码登陆服务器以及解决SSH登陆慢的问题
- centos配置ssh免密钥登录但是仍提示需要输入密码的解决办法
- SSH登录无需密码
- SSH 无需密码登录
- ssh 无密码验证 及 ssh localhost 仍然需要密码的解决方案
- ssh 无密码验证 及 ssh localhost 仍然需要密码的解决方案
- Android学习备忘007——全局变量的维护可以使用Application类
- The Adventures of Huckleberry Finn——1、Huck in trouble
- shell tr 命令
- ShopNC 对售前岗位的理解认识与管理
- MPEG4解码源码
- ssh root ssh localhost无需密码,但是普通用户登陆需要密码的解决办法!
- IBM笔试题4
- Spring反向控制的一个小例子
- 硬实时和软实时区别
- android debug bridge(adb)的使用
- 收集一些.NET开发资源站点和部分优秀.NET开源项目
- 字符设备驱动(1)
- Device Checks for ASM Fails with PRVF-5150: Path ORCL: is not a valid path(1210863.1)
- Onhand Qty(Tree) Diagnostics Scripts