Ubuntu 16.04。
正如标题所述,我的终端冻结了。我知道这是一个 ssh 会话,但我本以为它会让我退出,但整个终端都冻结了,无法进行鼠标或键盘输入。
有人知道解决办法吗?
答案1
为了使 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.)