AWS/Quick Reference
From r00tedvw.com wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | [[AWS/Quick_Reference|Quick Reference]] | + | [[AWS/Quick_Reference|Quick Reference]] | [[AWS/CLI|AWS CLI]] |
=Logging in to EC2 instance= | =Logging in to EC2 instance= | ||
Revision as of 10:24, 25 April 2019
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]