AWS/Quick Reference
From r00tedvw.com wiki
(Difference between revisions)
Line 4: | Line 4: | ||
When creating the EC2 instance, you should be given a SSH key (.pem). You will use this to log into the instance.<br> | When creating the EC2 instance, you should be given a SSH key (.pem). You will use this to log into the instance.<br> | ||
The Username will depend on the type of AMI image used: | The Username will depend on the type of AMI image used: | ||
+ | {| class="wikitable" | ||
+ | ! AMI Type || Username | ||
+ | |- | ||
+ | | Amazon Linux 2 (AMI) || <code>ec2-user</code> | ||
+ | |- | ||
+ | | Centos AMI || <code>centos</code> | ||
+ | |- | ||
+ | | Debian AMI || <code>admin or root</code> | ||
+ | |- | ||
+ | | Fedora AMI || <code>ec2-user or fedora</code> | ||
+ | |- | ||
+ | | RHEL AMI || <code>ec2-user or root</code> | ||
+ | |- | ||
+ | | Suse AMI || <code>ec2-user or root</code> | ||
+ | |- | ||
+ | | Ubuntu AMI || <code>ubuntu</code> | ||
+ | |} | ||
+ | <nowiki>~$ ssh -i ~/.ssh/grafana01.pem [email protected]</nowiki> |
Revision as of 08:52, 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.
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]