Reputation: 359
1The security group allows SSH at port 22 Inbound Rule
This is the first time I've had this problem. I logged in from a friend's AWS account to one of his instances and it connects. so the problem isn't at my end.
Here's the debug log:
OpenSSH_7.2p2, LibreSSL 2.4.1
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: resolving "ec2-54-215-233-245.us-west-1.compute.amazonaws.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ec2-54-215-233-245.us-west-1.compute.amazonaws.com [54.215.233.245] port 22.
I followed AWS's troubleshooting guide and even that didn't work. Any idea what's wrong?
Upvotes: 2
Views: 1703
Reputation: 269091
The standard things to check when you can't SSH into an instance:
0.0.0.0/0
to the Internet Gateway)Upvotes: 3
Reputation: 22439
It's probably due to your key.pem's permission not securely set. You might want to try set it to 0400 or 0600 (e.g. sudo chmod 400 key.pem
).
Upvotes: 0