Hi, if the connection is established but then times out, and especially since your problem occurs one way round and not the other, it might be down to the ISP providing one end of the connection. Is that so for your setup? For example, if the #! box is on cable or ADSL your ISP might have policies in place that terminate always-open connections.
In my case, with VirginMedia in the UK, I have found adding a ~/ssh/config file with following settings in has helped:
Code:
Host *
ServerAliveCountMax=20
ServerAliveInterval=45
Your mileage may vary, but experimenting with these settings or similar may be worthwhile.
To check logs (if necessary) then look at /var/log/auth.log on the destination host. It should record every attempt at authentication but may not provide much more help.
The global config for ssh is set by /etc/ssh/ssh_config (outgoing) and /etc/ssh/sshd_config (incoming).