1.You can download putty here – Download Putty.
You need to download puttygen.exe and putty.exe.
The key file you download from AWS console will be a .pem file.Since putty uses .ppk files for authentication, we need puttygen to convert the .pem file to .ppk .
2.Converting .pem file to .ppk file using puttygen.
Open puttygen.exe and load the private key you downloaded when you created the instance . It looks like“example.pem”. Once you open the .pem file a pop up window will appear , asking you to save the private key. Click ok and click save private key button.
Save the .ppk file in any folder.
Note: Do not click generate key or any other buttons. Just load the pem file and click save the private key button.
3.Connecting to Ubuntu using SSH client putty.
Open putty.exe Enter the host name or IP (public or elastic ip) as shown in the figure below.
Eg: “ec4-50-18-154-285.compute-1.amazonaws.com” or if you have given an elastic ip for your instance, then you should enter that elastic ip in the host field.
Now goto connection–>data and type in the user name. User name differs for different instance types.
For Ubuntu the default user name is ubuntu
For RHEL and Amazon Linux instance the default user name is ec2-user
For SUSE instance the default user name is root
Now got to SSH–>Auth click on Auth and load the .ppk file you generated using puttygen.