2016-06-10 59 views
0

有ppk密鑰才能登錄到亞馬遜機器。但是從linux機器登錄它必須被轉換成pem文件,因爲我在以下鏈接中閱讀。需要膩子在centos7中將ppk文件轉換爲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安裝膩子。

[[email protected] ~]$ 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 

[[email protected] ~]$ 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 

[[email protected] ~]$ 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 

[[email protected] ~]$ 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 

[[email protected] ~]$ 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 

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

+0

您可能需要更新您的回購..嘗試採取看看這個:HTTP://www.tecmi nt.com/how-to-enable-epel-repository-for-rhel-centos-6-5/ – ryekayo

+1

Centos確實提供膩子包試試這個wget http://packages.sw.be/rpmforge-release/ ... f.i386.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm yum --enablerepo = rpmforge install putty – error2007s

+0

我安裝了epel-release回購並試過。但它沒有。用我的機器中的repolist編輯我的問題。 –

回答

0
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