linux - Why is a remote server asking me to generate public/private SSH keys?

  • Questioner

    Each time I access a specific remote server, it asks me to generate my public/private SSH keys, that it keeps on the machine.

    Why is that? Don't I send my public key when I try to establish a connection with the server? Why is it asking me to generate them? What's the point if the server keeps the two keys locally?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    SSH public/private keys work in Windows but not in Linux
  • Zack

    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 [email protected]" 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!

  • Related Answers
  • innaM

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

  • Arjan

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