Wissensdatenbank
pronego > pronego Helpdesk > Wissensdatenbank

Key-based authentication on Linux - Putty private key file

Lösung The Linux SSH client (typically OpenSSH) can't read the PPK format used by the Windows SSH client Putty. You need to convert the "PPK" key given to you into an OpenSSH key first. Install "putty" on Linux and use the puttygen command line tool:

$ sudo aptitude install putty
$ mkdir -p /home/MyHome/.ssh
$ puttygen /home/MyHome/mykey.ppk -o /home/MyHome/.ssh/id_rsa -O private-openssh

Enter your passphrase, and you'll get an OpenSSH-compatible key in the standard location $HOME/.ssh/id_rsa. Afterwards you can just use ssh-add(without any arguments!) to add this key to the SSH agent.

Alternatively you can use the PUTTYgen program provided by putty on Windows.

------------------

ssh-add <openssh key file>

------------------

When `ssh-add` does not work as expected because a ‘Could not open a connection to your authentication agent.’ error comes out, this might help:

eval `ssh-agent`
Artikeldetails
Artikel-ID: 58
Kategorie: pronego
Datum (hinzugefügt): 20.03.2013 09:25:23
Aufrufe: 685

 
<< Zurück

Powered by Help Desk Software HESK™