需要putty在centos7转换ppk文件到pem文件传输文件到亚马逊

hfwmuf9z  于 2022-11-07  发布在  其他
关注(0)|答案(4)|浏览(191)

有一个ppk密钥登录到亚马逊机器。但要从linux机器登录,它必须转换成pem文件,因为我在下面的链接中读到。
http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/
http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/
但无法找到/安装油灰在centos7。

[dkanagaraj@localhost ~]$ sudo yum install puttygen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosv.centos.org
 * extras: centosk3.centos.org
 * updates: centosv.centos.org
No package puttygen available.
Error: Nothing to do

[dkanagaraj@localhost ~]$ sudo yum install putty
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosv.centos.org
 * extras: centosk3.centos.org
 * updates: centosv.centos.org
No package putty available.
Error: Nothing to do

[dkanagaraj@localhost ~]$ sudo yum install putty-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosv.centos.org
 * extras: centosk3.centos.org
 * updates: centosv.centos.org
No package putty-tools available.
Error: Nothing to do

[dkanagaraj@localhost ~]$ sudo yum whatprovides putty
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosv.centos.org
 * extras: centosk3.centos.org
 * updates: centosv.centos.org
No matches found

[dkanagaraj@localhost ~]$ sudo yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosv.centos.org
 * epel: mirror.pregi.net
 * extras: centosk3.centos.org
 * updates: centosv.centos.org
repo id                                                                              repo name                                                                                                           status
base/7/x86_64                                                                        CentOS-7 - Base                                                                                                      9,007
epel/x86_64                                                                          Extra Packages for Enterprise Linux 7 - x86_64                                                                      10,122
extras/7/x86_64                                                                      CentOS-7 - Extras                                                                                                      310
updates/7/x86_64                                                                     CentOS-7 - Updates                                                                                                   1,687
repolist: 21,126

如果有其他方法可用,真的很感激。

vwhgwdsa

vwhgwdsa1#

登记步骤在我的CentOS 7系统上工作:
[下载并安装EPEL存储库]

sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
sudo rpm -ivh epel-release-7-11.noarch.rpm

[安装油灰]

sudo yum install putty
y3bcpkx1

y3bcpkx12#

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
sudo rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
sudo yum --enablerepo=rpmforge install putty
puttygen SISPKey.ppk -O private-openssh -o pemkey.pem
cd .ssh
cp pemkey.pem ~/.ssh/
chmod 400 .ssh/pemkey.pem
rt4zxlrg

rt4zxlrg3#

***rpmforge***目前似乎不可用。登记的步骤在我的CentOS 7系统上工作:

1.**下载并安装EPEL储存库:**sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm sudo rpm -ivh epel-release-7-10.noarch.rpm
1.**安装油灰:**须道百胜安装油灰

zi8p0yeb

zi8p0yeb4#

如果您使用的是Amazon Linux 2,则可以从amazon-linux-extras安装EPEL
sudo yum install putty
然后只需使用
sudo yum install putty

相关问题