Come convertire la chiave privata di Putty (. Ppk) in formato chiave privata OpenSSH in Linux?
Se si desidera utilizzare il Putty generato chiave privata (. Ppk) in Linux non solo con Putty, ma SSH o client SFTP (Terminal, Nautilus, GFTP, ecc), devi convertirlo in formato chiave privata di OpenSSH, perché stucco formato chiave privata (. Ppk) non è compatibile con OpenSSH.
Primo, installare “putty-tools” pacchetto, se non lo avete ancora installato, perché include puttygen. You need PuTTYgen to convert the private key.
apt-get install putty-tools
Ora, convertire la propria chiave privata PuTTY(. Ppk) in formato chiave OpenSSH:
puttygen / path / to / mastice privatekey.ppk-O-privato openssh-o / path / to / openssh-chiave
se si utilizza l'autenticazione RSA, come me, your OpenSSH private key file name and location/path/to/openssh-key) is the following:
/ Home / utente / .ssh / id_rsa
Nota: “Utente” is your user name.
Formato chiave stucco pubblico è OK. Open the PuTTY public key in a text editor and copy the file content simply to OpenSSH public key file /path/to/openssh-key.pub
se si utilizza l'autenticazione RSA, come me, your OpenSSH public key file name and location (/path/to/openssh-key.pub) is the following:
/ Home / utente / .ssh / id_rsa.pub
Nota: “Utente” is your user name.
Ultimo, but not least set the correct permission to your private key file (chmod 600).
Tags: . Ppk, Linux, OpenSSH, chiave privata, PuTTY, PuTTYgen, RSA, L'autenticazione RSA
Giovanni 06, 2011
Volevo solo ringraziarvi Laszlo per il mastice strumenti, mi ha aiutato molto.