I'm pulling my hair out trying to get SSH to work through my router/firewall, tell me if I'm missing something...
Fresh install of Ubuntu Server 16.04, left SSH config alone, and created keys. Able to SSH to server inside of local network, all good there. Setup port forwarding on my router (22->22) (any->local ip address), cannot connect. Started a TCP port listener on another windows 10 machine and forwarded a random port to it, all good from the outside. Back to the Ubuntu machine, tried opening a TCP listener on a random port using netcat, forwarded that port to it, no go. I'm quite new to Ubuntu, I think must be missing something. UFW is off.
sudo tcpdump -n -tttt -i interface_name port 22
. If yes, then issshd
listening for any address?sudo netstat -tlnp
. If you are trying from your work to home, note that often work doesn't allow port 22 out. – Doug Smythies Aug 21 '18 at 14:13