Showing posts with label EC2 instance using Putty. Show all posts
Showing posts with label EC2 instance using Putty. Show all posts

Sunday, January 19, 2014

{Workaround}how to get access to the server, when Amazon EC2 private key lost

1. Login to your AWS Management Console.

2. Select  EC2 from the Services | set your Region in the drop-down list | Click the Instances link in left side bar.

3. Right click on the instance name. The Instance Management context menu will appear. Select Create Image.

1

4. Enter the name and description. This is for your use, not Amazon’s.Click the Create Image button. A confirmation message appears. Behind the scene, EBS volume is copied to a snapshot.

2

5. Find your new AMI. AMI link is in the left navigation bar. Right Click on it and select the Launch (Follow the wizard).

3

6. In the last step, select the “Create a new key pair” instead of using the existing key pair,provide the name to your key pair and then click Download Key Pair Button.

4

7. Convert the downloaded key (for Putty use)  by using the following Tutorial.

8. Connect to the instance with the converted key and verify your data/setting.

5

Hope this will help you!

Please Remember me in your prayers!

Monday, June 17, 2013

How to connect to an EC2 instance using Putty

You created an EC2 instance and got private key (with PEM extension)from Amazon. Now, how you can login to your instance with PuTTY? For this, you need to convert the .PEM to .PPK format using Puttygen.

Run Puttygen:



Click on the Load button:



Locate your PEM file that you want to convert:



Putty will convert the .PEM to .PPK format:



Select “Save Private Key” (passphrase is not required):



Launch Putty and enter the Instance IP address:



Navigate to Connection -> SSH -> Auth, Click “Browse” and select the .PPK file and Click “Open“:



When connection comes up enter username (default is ubuntu for Ubuntu and root for CentOS):



Hope this will help you!