I have an old P4 system which is running Ubuntu 11.04. The machine is connected to the internet via a USB wireless adapter, and it has openssh installed, so I can connect to it from other computers in my network. My problem is, a few minutes after I connect to the machine via ssh, the ssh connection freezes and I cannot do anything on terminal. I know that the server is still connected to the wireless network, but somehow it doesn't respond...unless I request a web page or anything else from the internet on the server machine. When ssh connection freezes, I use the server machine to request a web page using wget, it waits for a while, then downloads the page, and then the ssh connection which was frozen earlier starts to work again.
As a temporary solution, on server machine I execute a script which requests a web page (via wget) periodically. So far, it looks like this solution works fine, however I don't get why the machine is acting that way. Any ideas?