---
title: "终止无响应的 SSH session"
description: "SSH session 偶尔会失去响应。如果我让笔记本进入睡眠，这种情况相当常见。与其直接关掉标签页，你可以使用 SSH Escape Characters 来终止 session"
canonical: https://oozou.com/til/kill-unresponsive-ssh-session-65
locale: zh-Hans
date: 2020-10-13
topic: shell
---

# 终止无响应的 SSH session

> SSH session 偶尔会失去响应。如果我让笔记本进入睡眠，这种情况相当常见。与其直接关掉标签页，你可以使用 SSH Escape Characters 来终止 session

Published: 2020-10-13 · Topic: [shell](https://oozou.com/zh-Hans/til-topics/shell) ([markdown](https://oozou.com/zh-Hans/til-topics/shell.md))

SSH session 偶尔会失去响应。如果我让笔记本进入睡眠，这种情况相当常见。与其直接关掉标签页，你可以使用 SSH Escape Characters 来终止 session

```shell
$ ~.
```

想查看所有 escape characters，请查阅 *man ssh* 并搜索 ESCAPE CHARACTERS *$ /ESCAPE CHARACTERS*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/zh-Hans/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
