Is there any way I could trigger a bash script when ssh times out?I have an alias to set the tmux title when starting ssh. The alias also includes a title change after the ssh session, which works if I do a clean exit, but if the session times out, the rest of the alias doesn't run.
Detecting SSH timeout
bash;ssh;error handling