Click to See Complete Forum and Search --> : Cannot access with SSH after long idle times


besttb
02-13-2005, 07:30 PM
My client had a IT company build a Redhat linux server for their web site. I manage the server they built including installation of all software to run the website (PHP, MySQL, and APache).

Right now this server only has Apache running on the box. The server is not in production yet so no users are hitting it. When the servers boots up I can access it with SSH and webmin without a problem. But if the session remains idle for more than an hour, its as if someone shut the machine down. I cannot even ping the machine.

But if I keep trying to hit the machine with SSH - I have to go through 3 'operation timed out's before I can get back in.

Is there some type of sleep function I'm missing somewhere- or a session time out setting somewhere on the server I can turn off.

This is a web server so it needs to be accessible at all times. I am not aware of a sleep function or a session time out setting for ssh. Any insights?

VR/Tim

techwise
02-13-2005, 11:22 PM
if you havent already done so, sheck all the settings in the sshd_config file and make sure they are as they should be. Also, FYI there are some nice options you can use to harden SSH a bit and to make it easier to use (i.e. public key authentication)

all this is readily available in the "sshd_config" man page.


mike