I log in to my server (server1) with user, password and private key: key.ppk.

I want to ssh from server2 to server1. So I do the following:

ssh -i /srv/key.ppk root@XX.XX.XXX.XXX

When XX.XX.XXX.XXX is the IP of server1.

It gives me the following statement:

Enter passphrase for key 

where do I go wrong? Is it the right key should I put?

  • Does your key file have a passphrase? Can you cat /srv/key.ppk without it asking for a password? – drs Jul 30 '14 at 16:04

You are being asked for the passphrase for your private key, not for the password to your account. Normally, the file containing a private key is encrypted with a passphrase, so that if someone gains access to your hard disk or to your backups, they won't be able to use your key. You need to enter the passphrase to decrypt the private key. If you aren't worried about losing your key in this way, you can set an empty passphrase, so that the private key is left unencrypted.

Note that .ppk is the default extension for PuTTY's private key files; OpenSSH key files normally have the extension .id_rsa or .id_dsa or .id_ecdsa. OpenSSH and PuTTY keys are compatible, but they use different file formats. If you have a PuTTY private key file, you need to export it to OpenSSH format with the PuTTYgen utility.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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