I'm trying to use an SSH tunnel from home trough a computer in the university so I can access some articles.
Both machines are running Ubuntu 11.04. The university's machine runs openssh-server
.
At home I followed these instructions:
-
open an ssh session:
ssh -D 9999 -C user@my_addr.com
-
Then I configured Firefox to user SOCKS5 connection on port
9999
oflocalhost
.
This works for some time. Then, it suddenly hangs the connection and the terminal just freezes.
What am I missing here?
Best Answer
You can try setting the ClientAliveInterval and ClientAliveCountMax variables in your sshd config file to values that suit you.
From the manual: