I'm trying to ssh into my ec2 instance in order to deploy my MEAN-stack app but no matter what I'm receiving a timeout error. I've tried so many solutions that were posted in other StackExchange threads but to no avail. I am running macOS 10.14.1
On my mac I've tried connecting via FileZilla, Cyberduck and even using command line arguments such as ssh -v -v -v -i "<pem-file-name>.pem" [email protected]
and ssh [email protected]
. Below is the error output from running either of these commands:
OpenSSH_7.1p2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to ec2-18-207-106-113.compute-1.amazonaws.com [18.207.106.113] port 22.
debug1: connect to address 18.207.106.113 port 22: Connection timed out
ssh: connect to host ec2-18-207-106-113.compute-1.amazonaws.com port 22: Connection timed out
These are the solutions that I've tried that did not seem to work:
Connecting on Windows 10 using PuTTY, FileZilla and command line, but also received the same timeout errors.
Using a different MSI (first with Bitnami, then with Ubuntu)
Firewall is disabled
Resetting the default port in
/etc/ssh/ssh_config
and connecting to the new portPinging
ec2-18-207-106-113.compute-1.amazonaws.com
and18.207.106.113
is successfulRunning command
netstat -nat | grep 22
gives the below outputtcp4 0 0 192.168.254.17.56207 17.249.188.80.5223 ESTABLISHED 9e4be63389882253 stream 0 0 0 9e4be6338988231b 0 0 9e4be6338988231b stream 0 0 0 9e4be63389882253 0 0 9e4be63384ea2193 dgram 0 0 0 9e4be63384ea225b 9e4be63384ea225b 0 9e4be63384ea225b dgram 0 0 0 9e4be63384ea2193 9e4be63384ea2193 0 kctl 0 0 22 9 com.apple.netsrc
The EC2 security group has the following inbound rules set up: EC2 Security Group