I have a desktop computer and a laptop. Both run Debian 9.5. Both have openssh installed.
On my desktop, when I run
ip a, I see this as part of the output:
enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 # Some other stuff inet 192.168.0.11
On my laptop, when I run
ssh myDesktopUsername@192.168.0.11, I get this error after a while:
ssh: connect to host 192.168.0.11 port 22: Connection timed out.
My desktop computer is connected to my Motorola router/modem by Ethernet cable. On the port forwarding section of my router/modem page, I have this rule.
My laptop is not on the same network as my desktop machine. Using my laptop, how do I remotely connect to my desktop via SSH?