PuTTYgen没有提供SSH-2 RSA的选项 [英] PuTTYgen doesn't give me the option for SSH-2 RSA

查看:958
本文介绍了PuTTYgen没有提供SSH-2 RSA的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多年来我一直在从Ubuntu访问我的AWS EC2实例,没有任何问题.我也想从Windows机器连接到它.该过程似乎很简单...将我的*.pem文件复制到Windows计算机上,并使用PuTTYgen转换为*.ppk.

I've been accessing my AWS EC2 instance from Ubuntu for years with no issues. I'd like to also connect to it from a Windows machine. The procedure seems straight forward... copy my *.pem file to the Windows machine and convert to *.ppk using PuTTYgen.

Amazon的说明提供以下内容...

The Amazon instructions provide the following...

但是当我打开PuTTYgen时,我得到了...

But when I open PuTTYgen, I get...

SSH-2 RSA没有可用的选项.

No option is available for SSH-2 RSA.

我在这里想念什么?没有给定选项时,如何创建SSH-2 RSA格式的.ppk?

What am I missing here? How do I create a .ppk in SSH-2 RSA format, when there isn't a given option?

推荐答案

TLDR:只需跳过步骤2 :

  1. 要生成的密钥类型下,选择 RSA .

如果您使用的是PuTTYgen的旧版本,请选择 SSH-2 RSA .

If you're using an older version of PuTTYgen, choose SSH-2 RSA.


AWS文档在这里是错误的. 要在PuTTYgen中转换现有的私钥文件(从pem到ppk),不需要选择密钥类型. PuTTYgen会自动从私钥文件中检测密钥类型.您会在顶部的两个框中看到已加载键的键类型.


The AWS documentation is wrong here. To convert an existing private key file (pem to ppk) in PuTTYgen, you do not need to select key type. PuTTYgen will automatically detect key type from the private key file. You will see key type of the loaded key in the two top boxes.

还请注意,尽管当前AWS始终会生成RSA密钥,但是如果它们进行了更改,请不要担心并保留密钥的生成方式,无论它是哪种类型.

Also note that while currently AWS always generates RSA keys, if they ever change that, just do not worry and keep the key as it was generated, no matter what type it will be.

文档错误引用的选择是为了生成"文档.只能使用新密钥(如其标签上明确指出的那样).它对转换现有密钥完全无效.

The selection, that the documentation incorrectly refers to, is for "generating" new keys only (as its label clearly says). It has no effect at all for converting existing keys.

无论如何,要回答这个问题:这是第一个"RSA" 选项:

Anyway, to answer the question: That's the first "RSA" option:

这些天SSH-2已成为事实上的标准.因此,在最新版本的PuTTYgen中,他们选择不明确提及该版本(以节省新的ECDSA和ED25519密钥类型的空间).

The SSH-2 is de-facto standard these days. So in the recent versions of PuTTYgen, they opted not to mention the version explicitly (to save a space for the new ECDSA and ED25519 key types).

AWS文档中的屏幕截图来自不支持ECDSA和ED25519密钥类型的PuTTYgen的较早版本.

The screenshot in AWS documentation is from an older version of PuTTYgen that did not support the ECDSA and ED25519 key types.

检查 PuTTYgen文档.它明确提到所有密钥类型("SSH-1(RSA)" 明显除外)均用于SSH-2.

Check the PuTTYgen documentation. It explicitly mentions that all key types (with obvious exception of the "SSH-1 (RSA)") are for SSH-2.

当前版本的SSH协议SSH-2支持几种不同的密钥类型. PuTTYgen可以生成:

The current version of the SSH protocol, SSH-2, supports several different key types. PuTTYgen can generate:

  • 用于SSH-2协议的RSA密钥.
  • 用于SSH-2协议的DSA密钥.
  • 用于SSH-2协议的ECDSA(椭圆曲线DSA)密钥.
  • 用于SSH-2协议的Ed25519密钥(另一种椭圆曲线算法).

PuTTYgen还可以生成适用于旧SSH-1协议(仅支持RSA)的RSA密钥;为此,您需要选择"SSH-1(RSA)"选项.由于SSH-1协议不再被认为是安全的,因此很少需要此选项.

PuTTYgen can also generate an RSA key suitable for use with the old SSH-1 protocol (which only supports RSA); for this, you need to select the ‘SSH-1 (RSA)’ option. Since the SSH-1 protocol is no longer considered secure, it's rare to need this option.

这篇关于PuTTYgen没有提供SSH-2 RSA的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆