I just started to experiment with ssh and port forwarding. I use ubuntu to ssh into my iMac. The iMac says to use ssh user1@host
and that works fine when I am using the same network. However, when I connect to my Ubuntu to another network, say at work, and try to ssh into my iMac with ssh -v -v -v user1@host -p 22
I get the following output:
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connect to address user1@host port 22: Connection timed out
I setup my router to forward port 22 to my iMac's ip address--I'm not sure if my ISP is blocking this port, I still need to check this. My router is Netgear Nighthawk R7800 AC2600. Is there anything I need to setup in Ubuntu, in the ssh_config file, to make this connection work?