Brand new to AWS. I was able to ssh to my EC2 instance fine yesterday, but today SSH hangs with this (verbose) output:
-> ssh -vvv -i "x.pem" [email protected]
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "ec2-x-x-x-x.us-east-2.compute.amazonaws.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ec2-x-x-x-x.us-east-2.compute.amazonaws.com [18.191.133.22] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file x.pem type -1
debug1: key_load_public: No such file or directory
debug1: identity file x.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
I tried the suggestions here SSH hangs when connecting to Amazon EC2 instance but none worked. I have a security rule allowing ssh to port 22 from anywhere.
I can ping the instance and telnet to port 22 fine.