So I am able to SSH onto the server when connected to the same network, but I need to enable remote connection.
When I enter ssh -v user@serverIP
, I get the output:
OpenSSH_5.6p1, OpenSSL 0.9.8y 5 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for
debug1: Connecting to 192.168.0.19 [192.168.0.19] port 22.
When i enter ssh user@serverIP
i get:
ssh: connect to host 192.168.0.19 port 22: Host is down
I enabled port22 forwarding with :
sudo ufw allow 22
I also logged onto my router firewall settings to enable port 22.
The main things I changed in /etc/ssh/sshd_config
is:
Port 22
ListenAddress InternetIP
ListenAddress ServerIP
Any insight would be greatly appreciated.
ListenAdddress
syntax. It's not a|
-separated list of IPs. Use multipleListenAddress
lines with an IP/hostname per line.