AWS EC2: Create a private key file from a certificate - ***. Pem for access to the SSH terminal

I have a passkey, a secret key and a downloaded certificate file.

I understand that SSH requires a private key file in order to establish a terminal for SSH connections to my instance.

what i found through google is that i need to use puttygen to convert my pem certificate file to private key file:

http://www.techrepublic.com/blog/datacenter/connect-to-amazon-ec2-with-a-private-key-using-putty-and-pageant/5085

however, all the instructions that I found are based on the puttygetn GUI and I only have the CL version because I use Linux Fedora 16 on my laptop. I made yum PuTTy, which came with a GUI, but puttygen only has a CL version. what I tried to do in puttygen is as follows:

>puttygen cert-***.pem -o default.pem 

puttygen: error loading `cert-***.pem': file does not begin with OpenSSH key header

Can anyone point out what I'm doing wrong, and how can I use puttygen CL to convert my certificate file to a private key file that can be used by SSH to connect to my instances?

early

+5
source share
2 answers

ssh X.509 . , ssh, EC2, ".pem", cert pk.

X.509 ssh, .

ssh ( "keypair" ) Amazon EC2 AWS AWS (ec2-add-keypair). Putty, PPK, , sp key.pem, X.509 .

, ssh ( ), , ssh EC2.

EC2, ssh , EC2 ssh , .

+4

Linux , ppk puttygen? , AWS IS pem, ssh.

, .pem Amazon /path/to/aws.pem, , ,

ssh -i /path/to/aws.pem user@hostname.com
+9

All Articles