大网数据广告活动
服务器运维问答

Filezilla/Puttygen doesn't recognize private key file

· 52CE 我爱测

I have generated a key for an Ubuntu Virtual Machine running on Azure Cloud Services http://www.windowsazure.com/en-us/manage/linux/how-to-guides/ssh-into-linux/ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myPriva…

问题原文

原帖链接 · raul782 · CC BY-SA 3.0

I have generated a key for an Ubuntu Virtual Machine running on Azure Cloud Services http://www.windowsazure.com/en-us/manage/linux/how-to-guides/ssh-into-linux/

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myPrivateKey.key -out   myCert.pem

When loading the private key into Filezilla, it asks me to convert the format, however, when converting the key it fails, the same happens with puttygen from linux console, using this:

puttygen myPrivateKey.key -o myKey.ppk

In both cases I have the following error:

puttygen: error loading `myPrivateKey.key': unrecognised key type

By the way, this key doesn't have a passphrase.

I found an old thread about it, but I'm using 0.6.3 version which is newer than what this thread recommends:

http://fixunix.com/ssh/541874-puttygen-unable-import-openssh-key.html

I've managed to solve this issue by using another gui client Fugu for Mac, but one of my co-worker uses windows and I still have to figure this out.

Since Filezilla is the de-facto ftp client, I thought it would be easier to solve it there.

Thanks

社区高分解答

原帖链接 · andrew perry · CC BY-SA 3.0

changing the password, as sugggested above, worked for me. I changed the password

ssh-keygen -p -f private_keyfile
then tried again to use puttygen to create a ppk file and it was successful.

puttygen private_keyfile -o private_keyfile_for_putty.ppk

before changing the password I got an error
"puttygen: error loading `rate_notices_key': unrecognised key type"

using puttygen on both windows and my FreeBSD vm. thanks for that, I searched high and low before finding your answer. Sure, I could have just created a new key pair with puttygen, but having used ssh-keygen and submitted the public key to a vendor for an account to access a secure ftp site, I wanted to use the private key I already had.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-01-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。