My parents live far away from me, but often need assistance with the computer. I therefore want to be able to administer their ubuntu-box remotely with ssh. Since none of us have static ip adresses, my plan is to use DynDNS to keep track of the ip adresses.
Before I involve my parents, I want to test it all on my own computer, in short: I want to connect to my own computer with ssh, but using DynDNS to resolve the ip adress. In the following xxx.xxx.xxx.xxx stands for an actual public ip adress.
The problem arises when i try to log in with DynDNS:
The problem persists if i substite the actual public ip adress for "myhostname.dyndns.org". Same result if I check port 22 on http://www.canyouseeme.org.
myname@mybox:~$ ssh -v firstname.lastname@example.org
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to mek-403-jakbo-01.dyndns.org [220.127.116.11] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection timed out
ssh: connect to host myhostname.dyndns.org port 22: Connection timed out
I think I have the DynDNS part working, since I can resolve my ip with the 'host command'  and ddclient is running .
As for the ssh part, i have installed the openssh-client and openssh-server packages and succesfully gone through
The ssh daemon is running , it listens on port 22 , and i can succesfully log in with "shh localhost" .
Using firestarter i have set the firewall policy to "service=ssh, port=22, source=all" and allowing all incoming connections. This does not change the result. My computer is on a home network with a Netgear CVG824G wireless cable voice gateway.
How can I diagnose the problem further, and am I doing this right at all?
I have read that i need to set up port forwarding on my router. Is this correct? When doing this I can set values for (Name,strt port, end port, protocol,local ip adress) I put in "SSH","22","22","both" but I do not know what to give as local ip adress.
I will be grateful for any help, as this is the first time i am wrestling with networking stuff.
myname@mybox:~$ host myhostname.dyndns.org
myhostname.dyndns.org has address xxx.xxx.xxx.xxx
myname@mybox:~$ ps -ef | grep ddclient
root 2027 1 0 19:56 ? 00:00:00 ddclient - sleeping for 90 seconds
myname 4870 5562 0 22:00 pts/0 00:00:00 grep ddclient
myname@mybox:~$ ps -ef | grep sshd
root 1150 1 0 19:56 ? 00:00:00 /usr/sbin/sshd -D
myname 7571 5562 0 21:33 pts/0 00:00:00 grep sshd
myname@mybox:~$ sudo ss -lnp | grep sshd
0 128 :::22 :::* users:(("sshd",1150,4))
0 128 *:22 *:* users:(("sshd",1150,3))
myname@mybox:~$ ssh localhost
Linux mybox 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
If you want to download a file from a URL via the console, you can use the
command 'wget http://address/to/file.tar'
Last login: Tue Sep 20 21:41:13 2011 from localhost