putty私钥连接不上fedora的问题

putty版本:0.70

首先排除了fedora38上rsa私钥以及配置的问题,就剩下2个可能:

1,历史私钥不兼容;

2,Putty的问题;

经过验证,属于putty0.70的bug,最新版本已经修复,putty版本升级到0.78即可。

对于ppk私钥,可以转化成openssh的公钥和私钥,命令行如下:

# 转成OpenSSH私钥

puttygen key/aliyun.ppk -O private-openssh -o id_rsa

# 转成OpenSSH公钥

puttygen key/aliyun.ppk -O public-openssh -o id_rsa.pub

针对pem私钥,可以转化成openssh的公钥和私钥,命令行如下:

# 转成OpenSSH私钥

openssl pkcs8 -topk8 -inform PEM -in key/aws.pem -outform PEM -nocrypt -out id_rsa

# 转成OpenSSH公钥

ssh-keygen -e -f key/aws.pem > aws_key.ssh2

ssh-keygen -i -f aws_key.ssh2 > id_rsa.pub

更多参考:https://blog.csdn.net/stevensxiao/article/details/109381001

Monthly Archives

Pages

Powered by Movable Type 7.9.4

About this Entry

This page contains a single entry by Cnangel published on July 4, 2023 1:35 PM.

关于RHEL升级安装的一些问题 was the previous entry in this blog.

Find recent content on the main index or look in the archives to find all content.