1

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

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?

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

1 Answer 1

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .