最佳答案
如果您使用SSH,则可以使用转义序列.
例如要发送中断,请按:
原文链接:https://www.f2er.com/linux/441181.html例如要发送中断,请按:
输入,〜和B.
“enter”当然不是键入的,只需按回车键(我想“重置”当前的命令缓冲区)
其他有趣的
终止超时会话
输入,〜和.
发送转义字符
输入,〜和〜
您可以列出这些命令
输入,〜和?
在我的系统上面打印:
# ~?
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 (SSH protocol 2 only)
~^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.)