我用putty配置了自动登陆到服务器组成的cluster,今天忽然出现错误
server refused our key
要输入用户密码才能登陆shell
折腾了半天也没找到缘由vim
最后发现是权限的问题致使,ssh登录默认为“严格”模式服务器
解决方案一:ssh
[root@localhost zhangkai2]# chmod 700 .sshide
[root@localhost .ssh]# chmod 600 authorized_keys*
.ssh目录权限是700
.ssh里面的文件权限是600url
解决方案二:rest
修改sshd_config的配置,须要StrictModes no。server
vim vim /etc/ssh/sshd_confightm
/etc/init.d/sshd restart