「小技巧」 SSH 鏈接斷了可是不想關掉終端從新打開怎麼辦?

SSH 鏈接斷了可是不想關掉終端從新打開怎麼辦?

SSH 鏈接斷了可是不想關掉終端從新打開怎麼辦?依次輸入 回車 ~ .session

~ 是 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.)
相關文章
相關標籤/搜索