从挂起状态唤醒后终端 ssh 会话冻结

Mat*_*Som 7 ssh gnome-terminal 16.04

Ubuntu 16.04。

正如标题所说,我的终端冻结了。我知道这是一个 ssh 会话,但是我只希望让我离开,但是整个终端都冻结了,无法进行鼠标或键盘输入。

有人知道解决方案吗?

小智 5

要使 SSH 转义序列起作用,您需要在换行符上,因此RETURN请先按键。

然后使用例如~.(终止连接)将起作用。

要查看~?SSH 会话中使用的所有支持的转义序列:

Supported escape sequences:
 ~.   - terminate connection (and any multiplexed sessions)
 ~B   - send a BREAK to the remote system
 ~C   - open a command line
 ~R   - request rekey
 ~V/v - decrease/increase verbosity (LogLevel)
 ~^Z  - suspend ssh
 ~#   - list forwarded connections
 ~&   - background ssh (when waiting for connections to terminate)
 ~?   - this message
 ~~   - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)
Run Code Online (Sandbox Code Playgroud)