每当我远程登录到另一台机器时,我输入:
数独重启
终端锁定一段相当长的时间。到目前为止,我想出的唯一解决办法是
sudo重新启动&退出和退出
第二个出口是因为有时第一个出口在毫秒的响应中不起作用。
我想知道是否有一种更漂亮的方式来做一些事情,这样的话,终端就不会锁起来,只会掉到本地的机器上。
发布于 2015-10-07 03:18:28
你读过man ssh吗?它展示了如何使用“逃逸字符”序列:
ESCAPE CHARACTERS
When a pseudo-terminal has been requested, ssh supports a number of
functions through the use of an escape character.
A single tilde character can be sent as ~~ or by following the tilde by a
character other than those described below. The escape character must
always follow a newline to be interpreted as special. The escape
character can be changed in configuration files using the EscapeChar
configuration directive or on the command line by the -e option.
The supported escapes (assuming the default ‘~’) are:
~. Disconnect.
~^Z Background ssh.
~# List forwarded connections.
~& Background ssh at logout when waiting for forwarded connection /
X11 sessions to terminate.
~? Display a list of escape characters.https://askubuntu.com/questions/682373
复制相似问题