- 论坛徽章:
- 0
|
请教用openssh登录时出现的:Permission denied (publickey)
顶一下,希望有人懂可以回答我, 搞了几天了, 今天得到的结果是Permission denied (). 然后跑到 www.openssh.com去查找了一下, 看到类似的东西, 按着提示的东西弄了一下, 结果滔声依旧.
3.14 - I copied my public key to authorized_keys but public-key authentication still doesn't work.
Typically this is caused by the file permissions on $HOME, $HOME/.ssh or $HOME/.ssh/authorized_keys being more permissive than sshd allows by default.
In this case, it can be solved by executing the following on the server.
$ chmod go-w $HOME $HOME/.ssh
$ chmod 600 $HOME/.ssh/authorized_keys
If this is not possible for some reason, an alternative is to set StrictModes no in sshd_config, however this is not recommended. |
|