Note
•
Recommend to use EC2 Instance Connect over SSH connection
•
Troubleshooting SSH: here
•
Do not enter your IAM API Key (Access Key and Secret Access Key) into an EC2 Instance.
•
Do not use aws configure as it can expose sensitive data
SSH
•
SSH is one of the most important function. It allows you to control a remote machine, all using the command line.
•
It is recommended to use EC2 Instance Connect
◦
Instance > Select an Instance > Connect > Connect
SSH Troubleshooting
•
If things don’t work…
1.
Read the troubleshooting guide: here
2.
Try EC2 Instance Connect
3.
Try Putty
◦
Timeout Issue
▪
Check Security Groups
▪
Check Firewall
◦
ssh command not found
▪
Use Putty
▪
Use EC2 Instance Connect
◦
Connection Denied
▪
Restart Instance
▪
Terminate Instance & Use Amazon Linux 2 to create new instance
◦
Permission denied (publickey, gssapi-keyex,gssapi-with-mic)
▪
Using a wrong Security Key
▪
Using a wrong User Account



