I\'m executing a script connecting via password-less SSH on a remote host. I want to set a timeout, so that if the remote host is taking an infinite time to run, I want to c
so the SSH client will send a null packet to the server each seconds, just to keep the connection alive.
In Linux this could be also set globally in /etc/ssh/ssh_config or per-user in ~/.ssh/config.