Search code examples
network-programmingsshserverlocalsshd

SSH No Route to Host


I apologize for the novice question, but have been struggling on this for many hours. I am running Ubuntu Server on Ubuntu 16.04. I can ssh fine into local host (thus know ssh server is running) enter image description here

However, when I try to log into my server externally, I get the error message shown below (yes I know port 22 is not secure): enter image description here

I have enabled port 22 on my /etc/ssh/sshd_config file and allowed the ListenAddress to be everything by leaving it empty (tried with other addresses), and ensured that my iptables are open: enter image description here

Finally, I am using a static IP address. And ensuring that I am forwarding ports: enter image description here

I am not including a port triggering as I do not believe that it is necessary?

What do I need to do to expose this server externally and be able to SSH into it? Any help is very much appreciated.


Solution

  • Solved, no responses required. My internal ip address that I had my port forwarding selected for was different than the internal ip address that my computer was on.