「小技巧」 SSH 连接断了但是不想关掉终端重新打开怎么办?

SSH 连接断了但是不想关掉终端重新打开怎么办?

SSH 连接断了但是不想关掉终端重新打开怎么办?依次输入 回车 ~ .

~ 是 SSH 的命令,使用 ~? 可以看到全部命令,只能在行开始的时候有效

ian@ops:~$ ~?
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.)
    原文作者:lidashuang
    原文地址: https://segmentfault.com/a/1190000009052304
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞