Hi Friends,
When we are working on a project then every time we have need to access server from our local system. When we want to connecting from local system to server which is a AWS Ec2 Instance .Putty ppk file has been provided to me to connect it by Aws. But We have need to access server using linux terminal via SSH. so we have need to convert ppk file to equivalent pem file.
Steps to convert that PPK file into an equivalent PEM file that I could use access Ec2 instance on linux terminal via SSH
Step 1: Install the putty tools, if you don`t have on Linux:
sudo apt-get install putty-tools
Step 2 : Generate the pem file run the following command:
puttygen ppkkey.ppk -O private-openssh -o pemkey.pem
Step 3 : Place the pemkey.pem file in your ~/.ssh directory
cp pemkey.pem ~/.ssh
Step 4 : Set the pem file to have the proper permissions
chmod 400 pemkey.pem
Now, we have a pem file that help us to connect to our EC2 instances from Linux. Below is an example:
ssh -i pemkey.pem [email protected]
Thanks
Please Feel Free to Contact me if you have any further Questions or Concerns.
Sanjay Saini
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Sanjay Saini
Sanjay has been working on web application development using frameworks like Java, groovy and grails. He loves listening to music , playing games and going out with friends in free time.