1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/unix/killing-a-frozen-ssh-session.md
2024-01-23 11:41:25 -06:00

18 lines
526 B
Markdown

# Killing A Frozen SSH Session
Whenever an SSH session freezes, I usually mash the keyboard in desperation
and then kill the terminal session. This can be avoided though. SSH will
listen for the following kill command:
```
~.<cr>
```
This will kill the frozen SSH session and leave you in the terminal where
you were before you SSH'd.
h/t [Jack C.](http://hashrocket.com/team/jack-christensen)
More details on this and other SSH secret commands are in [this
thread](https://x.com/freebsdfrau/status/1748451200448823475).