> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/os/unix/ssh/killing-a-frozen-ssh-session.md).

# 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.

source: [Jack C.](http://hashrocket.com/team/jack-christensen)
