Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having a strange problem with sshing into a remote box with a private key:

$ 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).

Then when I copy .ssh/id_rsa into the home directory (up a level), it works:

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

I don't think the permissions for the .ssh folder have changed at drwxr-xr-x

This is affecting other programs such as Aquamacs which I think looks in .ssh/id_rsa for the key when connecting using tramp.

share|improve this question
1  
Try running ssh with -vvv to get some debug information. –  Mat Aug 26 '12 at 17:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.