我已经.pem
从AWS生成并下载了私钥。但是,要使用Putty连接到虚拟机,我必须具有该.ppk
格式的密钥。转换过程大致在20行中进行了详细说明:
我正在使用Linux Mint(Ubuntu发行版),并且我知道可以在终端中使用puttygen。但是,我不知道如何使用该工具,也不知道如何配置所需的参数。当我输入puttygen --help时
PuTTYgen unidentified build, Aug 7 2013 12:24:58
Usage: puttygen ( keyfile | -t type [ -b bits ] )
[ -C comment ] [ -P ] [ -q ]
[ -o output-keyfile ] [ -O type | -l | -L | -p ]
-t specify key type when generating (rsa, dsa, rsa1)
-b specify number of bits when generating key
-C change or specify key comment
-P change key passphrase
-q quiet: do not display progress bar
-O specify output type:
private output PuTTY private key format
private-openssh export OpenSSH private key
private-sshcom export ssh.com private key
public standard / ssh.com public key
public-openssh OpenSSH public key
fingerprint output the key fingerprint
-o specify output file
-l equivalent to `-O fingerprint'
-L equivalent to `-O public-openssh'
-p equivalent to `-O public'
但是我对网站告诉我的操作一无所知,到目前为止,我所有的尝试都失败了。
在终端上使用Puttygen,我该如何执行网站告诉我的操作?
请参阅此SO Q&A,以了解如何正确执行所需的操作,标题为:将PEM转换为PPK文件格式。
摘抄
*.*
另一方面,如果您想通过命令行工具将a转换.pem
为.ppk
文件puttygen
,那么我在题为“ Q&A”的SO上确实遇到了这种解决方案:
摘抄
$ puttygen keyfile.pem -O private -o avdev.ppk
对于公钥:
$ puttygen keyfile.pem -L
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句