In our previous post, we have created the security group to access the aws server using the key. You must have a .pem key when you created the server. you can download and connect ex2 instance using the new ssh key pair in AWS. Now you can connect ec2 instance to login using ssh.
How To Access AWS Server Using the Private Key:
we can also make this at the time of server creation and later attach it to the server. By using the key, you can not access the server because you need to convert it to .ppk.
I have key and going to covert it, open the puttygen
Click on load and select your .pem key and save as any name webserv.ppk
Now open the putty and put the IP address in the hostname and click on ssh to load the key.
Click on open and now use username: ec2-user which is the default username for AWS.
You’re done. connect to ec2 instance ssh ssh login ec2 download key pair aws new ssh key aws