Prevent SSH hangs

Add this to /etc/ssh/ssh_config

ServerAliveInterval 100

This will send a NULL-packet every 100 seconds to the server, preventing idle timeouts.