AWS/Quick Reference
From r00tedvw.com wiki
Quick Reference | AWS CLI
Logging in to EC2 instance
When creating the EC2 instance, you should be given a SSH key (.pem), you will use this to log into the instance. Most likely, you will need to change the file permissions of the SSH key. I also like to move it to a common location.
~$ mv /home/r00t/downloads/grafana01.pem /home/r00t/.ssh/ ~$ chmod 600 /home/r00t/.ssh/grafana01.pem
The Username will depend on the type of AMI image used:
AMI Type | Username |
---|---|
Amazon Linux 2 (AMI) | ec2-user
|
Centos AMI | centos
|
Debian AMI | admin or root
|
Fedora AMI | ec2-user or fedora
|
RHEL AMI | ec2-user or root
|
Suse AMI | ec2-user or root
|
Ubuntu AMI | ubuntu
|
~$ ssh -i ~/.ssh/grafana01.pem [email protected]