简体   繁体   English

在 macOS 上将.pem 转换为.ppk

[英]convert .pem to .ppk on macos

There are lots of SO posts on this topic but most of them are for Windows and use the GUI.有很多关于此主题的 SO 帖子,但其中大部分是针对 Windows 并使用 GUI 的。 All others posts seem to use the CLI.所有其他帖子似乎都使用 CLI。

Is there a GUI version of puttygen on MacOS/Linux and if so instructions on how to install/use? MacOS/Linux 上是否有 puttygen 的 GUI 版本?如果有,关于如何安装/使用的说明? The CLI seems to give me an error. CLI 似乎给我一个错误。

Usage: puttygen ( keyfile | -t type [ -b bits ] )
                [ -C comment ] [ -P ] [ -q ]
                [ -o output-keyfile ] [ -O type | -l | -L | -p ]


>puttygen mykey.pem -t rsa -b 2048 -o mykey.ppk
puttygen: cannot both load and generate a key

Is there something wrong with my commands?我的命令有问题吗?

AFAIK, there is no GUI for putty versions of OSX. AFAIK,OSX的putty版本没有GUI。

You can simply convert your key like this: puttygen mykey.pem -o mykey.ppk 你可以简单地转换你的密钥: puttygen mykey.pem -o mykey.ppk

Now you should type现在你应该输入

puttygen Fishidentification.pem -o fishkey.ppk --ppk-param version=2

Because Putty/FileZilla ssh client applied PPK format version 2 not version 3. If you did not add the parameter --ppk-param version=2 , puttygen will generate ppk file as PPK format 3 as default.因为 Putty/FileZilla ssh 客户端应用的是 PPK 格式版本 2 而不是版本 3。如果您没有添加参数--ppk-param version=2 ,puttygen 将默认生成 PPK 格式 3 的 ppk 文件。 The error message is shown below:错误消息如下所示:

FATAL ERROR: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)致命错误:没有可用的受支持的身份验证方法(服务器发送:publickey、gssapi-keyex、gssapi-with-mic)

you can convert like this puttygen -t rsa -C name.pem -o name.ppk你可以像这样转换puttygen -t rsa -C name.pem -o name.ppk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM