【发布时间】:2016-10-11 09:46:12
【问题描述】:
有一个 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 中找不到/安装putty。
[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
如果有其他方法可用,真的很感激。
【问题讨论】:
-
您可能需要更新您的存储库。尝试看看这个:tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5
-
Centos 提供 putty 包试试这个 wget packages.sw.be/rpmforge-release ... f.i386.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm yum -- enablerepo=rpmforge 安装腻子
-
我安装了 epel-release repo 并尝试过。但它没有。用我机器上的 repolist 编辑了我的问题。
-
这是您想要转换的时间吗?如果是,则在 ubuntu 机器上转换文件(如果有的话)并将该密钥复制到 Centos 机器
-
谢谢@error2007s。我可以按照你说的做。在下面给出我的答案
标签: amazon-web-services amazon-ec2 centos putty centos7