如何转换腻子的私钥 (。库尔德工人党) 到OpenSSH的私人密钥格式在Linux?
如果你想使用腻子生成的私钥 (。库尔德工人党) 在Linux不仅腻子, 但其他SSH或SFTP客户端 (码头, 鹦鹉螺, 的gftp, 等), 你必须把它转换到OpenSSH的私钥格式, 因为腻子私人密钥格式 (。库尔德工人党) 是不是用OpenSSH兼容.
第一, 安装 “腻子工具” 包, 如果你现在还没有安装, because it includes PuTTYgen. You need PuTTYgen to convert the private key.
的apt - get安装腻子工具
现在, convert your PuTTY private key(。库尔德工人党) to OpenSSH’s key format:
puttygen /path/to/putty-privatekey.ppk -O private-openssh -o /path/to/openssh-key
如果您使用RSA认证, 像我这样的, your OpenSSH private key file name and location/path/to/openssh-key) is the following:
/首页/用户/ .ssh / id_rsa
注意:: “用户” is your user name.
腻子是确定公共密钥格式. 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
如果您使用RSA认证, 像我这样的, your OpenSSH public key file name and location (/path/to/openssh-key.pub) is the following:
/首页/用户/ .ssh / id_rsa.pub
注意:: “用户” is your user name.
最后, but not least set the correct permission to your private key file (搭配chmod 600).
标签: 。库尔德工人党, Linux的, OpenSSH的, 私钥, 腻子, PuTTYgen, RSA信息, RSA authentication
约翰 06, 2011
我只是想感谢腻子工具拉兹洛, 这对我帮助很大.