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 on Ubuntu 12.04. When I try to connect to our server

ssh user@server -p 1234 -i ~/path/to/my/private-key

it asks me 3 times for the private key's passphrase and finally fails, though I always enter the correct one. When I try it with Putty (converted the OpenSSH key to .ppk) it works without any problem. What could be the reason?

share|improve this question
2  
What are the permissions of the key? I doubt that's the issuesince usually you'll get an error from other server, but worth checking. –  nerdwaller Feb 16 '13 at 16:54
    
They are readable/writable by the user only. –  Mike L. Feb 17 '13 at 7:21
add comment

1 Answer 1

Try adding -v (verbose) option to the ssh command line, it could give you a hint.

Also make sure you really have the correct passphrase: try changing it with ssh-keygen -p

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.