直接拷贝以前RHEL5.4上面的authorized_keys
使用xshell和putty登陆都不行,提示public key没有注册云云
找到文章说sshd_config 中 strictModes yes 改为no,尝试了下可以
The option StrictModes specifies whether ssh should check user's permissions in their home directory and rhosts files before accepting login.
This option must always be set to yes because sometimes users may accidentally leave their directory or files world-writable.
检查了下.ssh 里面对应的文件发现 authorized_keys的权限是 -rw-rw-r-- 其他文件是 -rw-r--r--
chmod 600 * 就可以了
refer : http://support.chinaccnet.com/archives/6148.html
用putty密钥登陆出现server refused our key
打开sshd_config
找到StrictModes yes
修改为StrictModes no
找到StrictModes yes
修改为StrictModes no
/etc/init.d/sshd reload 重新加载下,登陆成功..