PDA

View Full Version : How to increase SSH & MySQL Connection Timeouts?



philg
02-12-2008, 01:16 PM
Does anyone know if there's a way we can increase the connection timeouts for SSHD and MySQL server?

It's annoying to get "Connection reset by peer" and have to log in again when I've not been using the connection for a few minutes.

Thanks!
Phil

philg
02-13-2008, 10:44 AM
This issues (for SSH) is resolved (or at least improved) by adding these lines to ~/.ssh/config:

TCPKeepAlive yes
ServerAliveCountMax 10
ServerAliveInterval 15

Phil