Tmux connection hang

Paul Sweeney · 6th July 2021

To prevent Tmux windows which spawn ssh connections from hanging due to connection drop…

Add the following properties to ~/.ssh/config:

    KeepAlive yes
    ServerAliveInterval 60

This will prevent the ssh connection dropping out.

:information_source: This probably shouldn’t be used for production hosts, being bad network etiquette.

Thanks

Info from this stackoverflow response.