AWS/Quick Reference
From r00tedvw.com wiki
(Difference between revisions)
| Line 2: | Line 2: | ||
=Logging in to EC2 instance= | =Logging in to EC2 instance= | ||
| − | When creating the EC2 instance, you should be given a SSH key (.pem) | + | 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. |
| + | <nowiki>~$ mv /home/r00t/downloads/grafana01.pem /home/r00t/.ssh/ | ||
| + | ~$ chmod 600 /home/r00t/.ssh/grafana01.pem</nowiki> | ||
The Username will depend on the type of AMI image used: | The Username will depend on the type of AMI image used: | ||
{| class="wikitable" | {| class="wikitable" | ||
Revision as of 09:55, 3 April 2019
Quick Reference
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]