如何转换腻子的私钥 (。库尔德工人党) 到OpenSSH的私人密钥格式在Linux?

于四月 3, 2009 由 拉兹洛1 如何

如果你想使用腻子生成的私钥 (。库尔德工人党) 在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).

标签: , , , , , , ,

相关岗位

  1. 如何转换腻子的私钥 (。库尔德工人党) 到OpenSSH的私人密钥格式在Windows?
  2. 在Linux的腻子连接错误, Debian的莱尼 (解决)
  3. 连接到远程计算机通过SSH
  4. Webbrowsing通过远程使用SSH连线机
  5. 如何建立一个受限制的OpenSSH的SFTP服务器?

一对 “如何转换腻子的私钥 (。库尔德工人党) 到OpenSSH的私人密钥格式在Linux?”

订阅此评论螺纹槽 的RSS
  1. Samboom71
    约翰 06, 2011
    回复

    我只是想感谢腻子工具拉兹洛, 这对我帮助很大.



给一个答复

本站由其他评论 BackType


访客地图

最近的读者