How can I keep my SSH sessions from freezing

Especially with home connections ssh connections get freezes after few minutes just for an idle timeout.In order to avoid this is possible to setup a keep alive mechanism. To get your configuration working, make these configuration changes on the client:/etc/ssh/ssh_config Host * ServerAliveInterval 100 ServerAliveCountMax 2 ServerAliveInterval: Sets a timeout interval in seconds after which