Hogyan lehet átalakítani Putty privát kulcs (. Ppk) a OpenSSH privát kulcsával formátumban Linux?
Ha szeretné használni a putty generált privát kulcs (. Ppk) A Linux nem csak Putty, de más SSH vagy SFTP kliens (Terminál, Nautilus, GFTP, stb), meg kell átalakítani, hogy az OpenSSH privát kulcs formátuma, mert a gitt privát kulcs formátuma (. Ppk) nem kompatibilis az OpenSSH.
Az első, telepíteni “gitt-eszközök” csomag, Ha nem telepíti azt még, because it includes PuTTYgen. You need PuTTYgen to convert the private key.
apt-get install putty-eszközök
Most, convert your PuTTY private key(. Ppk) to OpenSSH’s key format:
puttygen /path/to/putty-privatekey.ppk -O private-openssh -o /path/to/openssh-key
ha használja RSA authentikáció, mint én, your OpenSSH private key file name and location/path/to/openssh-key) is the following:
/ Home / user / ssh / id_rsa
Megjegyzés:: “Felhasználó” is your user name.
Putty nyilvános kulcs formátuma rendben van. 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
ha használja RSA authentikáció, mint én, your OpenSSH public key file name and location (/path/to/openssh-key.pub) is the following:
/ Home / user / ssh / id_rsa.pub
Megjegyzés:: “Felhasználó” is your user name.
Utolsó, but not least set the correct permission to your private key file (chmod 600).
Címkék: . Ppk, Linux, OpenSSH, privát kulcs, PuTTY, PuTTYgen, RSA, RSA authentication
Jan 06, 2011
Én csak meg akartam köszönni László a putty-tools, ez sokat segített.