首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >远程重新启动后的SSH终端锁

远程重新启动后的SSH终端锁
EN

Ask Ubuntu用户
提问于 2015-10-07 01:34:01
回答 1查看 1.3K关注 0票数 1

每当我远程登录到另一台机器时,我输入:

数独重启

终端锁定一段相当长的时间。到目前为止,我想出的唯一解决办法是

sudo重新启动&退出和退出

第二个出口是因为有时第一个出口在毫秒的响应中不起作用。

我想知道是否有一种更漂亮的方式来做一些事情,这样的话,终端就不会锁起来,只会掉到本地的机器上。

EN

回答 1

Ask Ubuntu用户

发布于 2015-10-07 03:18:28

你读过man ssh吗?它展示了如何使用“逃逸字符”序列:

代码语言:javascript
复制
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.
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/682373

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档