Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server that supports SSH Key-Auth login. I've made my key-pairs, uploaded them... etc. In short, it works--in Windows. I made the key-pair using Putty's key maker (PuttyGen IIRC) on my Windows XP box, however on my Linux box I can't "unlock" the key.

  • Permissions are set to 700 on the key file.
  • The password is correct, I'm 100% sure of it.
  • I'm running the command "ssh -i mykey.ppk" with obvious substitutions made.
  • The key is in my ~/.ssh directory.
  • The error is "Permission denied (publickey,gssapi-with-mic)."

The only thing I can think of is that it must be something between Linux and Windows. I've tried e-mailing myself the key file, directly copying it from my other HDD to this one, having another person email it to me from their Linux installation... it just won't work. This is the -only- thing preventing me from using Linux full-time for coding (something I really want to do!) so any help would be greatly appreciated, thanks!

share|improve this question
The PUBLIC key is on the server, right? – Arjan Oct 23 '09 at 15:59
And what do you mean by "it works in Windows"? Your Windows machine is the client, right? So, Windows is only half of the client-server combination? – Arjan Oct 23 '09 at 16:09
Or: are you trying to use both Linux and Windows as the client? (In which case indeed the private key must be on both Windows and Linux.) – Arjan Oct 23 '09 at 16:41
I'm using both Linux and Windows as clients, I have dual-boot setup on my computer at home. – Zack Oct 25 '09 at 16:43
up vote 5 down vote accepted

Use puttygen on the Windows machine to convert the private key to openssh format. Details are here, e.g.

share|improve this answer
Who knew it would be so easy? Thanks a ton!! – Zack Oct 25 '09 at 16:40

PuTTY uses its own format. You will need to convert that, or start the other way around.

share|improve this answer
I've tried using the Linux version of Putty, though, with the same result. – Zack Oct 23 '09 at 15:54
Converting seems like it might work, though. I'd like to give that a try--where should I look? – Zack Oct 23 '09 at 15:56
See… -- it might be easier to create a new key pair, so scroll up a bit then. – Arjan Oct 23 '09 at 16:01
Assuming both Windows and Linux are clients, then generating a new key pair also needs work on the server. Not needed; see… then. – Arjan Oct 23 '09 at 16:47

Your Answer


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.