First of all, give permission 400 to pem key file
chmod 400 /home/ubuntu/serverkaka.pem
|
Open Terminal and Type
ssh -i /home/ubuntu/serverkaka.pem ubuntu@34.239.44.197
|
Here /home/ubuntu/serverkaka.pem is a path of my pem key file and 34.239.44.197 is my aws instance IP.
Now you connect with AWS instance