
After launching a Linux Amazon EC2 instance, you can ssh in by using the private key (key pair download) provided in the AWS console. I’ll show you how!
1. In the AWS console, a key pair can be generated. Download the key pair (private key, .pem file) from the console.

2. Next, move this .pem file to ~/.ssh:
$ mv awskey.pem ~/.ssh
3. Fix some permissions:
$ chmod 600 ~/.ssh/awskey.pem
4. Now ssh into your AWS instance with the user name ec2-user:
$ ssh -i ~/.ssh/awskey.pem ec2-user@ec2-xx.xx.xx.xxx.compute-1.amazonaws.com

Done!
0 comments:
Post a Comment