- 2007/09/29 Sat
-
$ ssh foo:127.0.0.1 Enter passphrase for key 'id_rsa': Permission denied (publickey).
sshd_configを変更したわけでもないのに急に繋がらなく。
Permission deniedとか漠然と言われてもなぁと-vvvしてもよく分からず。
Permission deniedになる原因は色々あるようだけれど、http://www.openbsd.org/cgi-bin/man.cgi?query=sshdIf this file, the ~/.ssh directory, or the user's home directory
are writable by other users, then the file could be modified or
replaced by unauthorized users. In this case, sshd will not al-
low it to be used unless the StrictModes option has been set to
``no''. The recommended permissions can be set by executing
``chmod go-w ~/ ~/.ssh ~/.ssh/authorized_keys''.
これか。