Another sip of code ?

Reminder - Ssh - Terminate an Unresponsive Session

| Comments

A colleague of mine, just taught me something very useful (thanks Bryan !), how to terminate an unresponsive ssh session.

Let’s take this situation : You are connected to another computer (server, device, toaster, etc.), then suddenly your ssh session dies (usually when the network is down or the computer on the other side got disconnected) and the terminal is stuck waiting for the ssh session to timeout and give back control to the user.

Well there is a way to terminate this unresponsiveness with this shortcut :


Now, I don’t have to kill the terminal anymore !

I found a similar explanation and more shortcuts at the Lone Sysadmin (see source).

Source: The Lone Sysadmin