osx 10.4 - 〜/ .ssh / id_rsa不起作用,而〜/ id_rsa则起作用


1

我有一个奇怪的问题,即使用私钥ssh进入一个远程盒子:

$ ssh me@remote
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
$ ssh -i ~/.ssh/id_rsa me@remote
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

然后,当我将.ssh / id_rsa复制到主目录(上一级)时,它可以工作:

$ ssh -i ~/id_rsa me@remote
Enter passphrase for key 'id_rsa':

我不认为该.ssh文件夹的权限已更改drwxr-xr-x

这会影响其他程序,例如Aquamacs,我认为在使用tramp连接时,在.ssh / id_rsa中查找密钥。


1
尝试运行ssh -vvv以获取一些调试信息。
马特
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.