在服务器上时打开另一个外壳?
当我通过 ssh 在我的服务器上时,如何打开另一个终端?
我不想输入两次密码来为我的服务器获取另一个终端。
也许,Bash 也有与 Vim 类似的缓冲区。
How can I have another Terminal open when I am at my server by ssh?
I do not want to type my password twice to get another terminal for my server.
Perhaps, Bash has buffers similarly as Vim.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
查看 GNU 屏幕。 它使用起来有点神秘和尴尬,但是可以满足您的需求,并且它可能也安装在您的服务器上。
您还可以转发 X11 并运行多个 xterm 实例,但这很痛苦。
不过,最好的选择是众所周知的“每次都输入密码”解决方案:您应该设置 SSH 密钥,这样就不需要每次都输入密码,然后只需在“终端”选项卡中使用多个连接即可。
Check out GNU screen. It's kind of arcane and awkward to use, but does what you're looking for, and it's probably also installed on your server.
You can also forward X11 and run multiple
xterm
instances, but that's a pain.Your best bet, though, is your proverbial "type my password every time" solution: you should set up SSH keys so you don't need to type your password every time and then just use multiple connections in Terminal tabs.
您可以使用类似GNU Screen之类的东西。
You can use something like GNU Screen.
Bash shell 有一个称为作业控制的功能,允许您运行和管理多个进程。 您可以在这里阅读: http://commandlinemac.blogspot.com/2008/12/bash-job-control-fg-bg-jobs-and-ctrl-z.html
The Bash shell has a feature called Job Control that allows you to run and manage multiple processes. You can read about it here: http://commandlinemac.blogspot.com/2008/12/bash-job-control-fg-bg-jobs-and-ctrl-z.html
GNU 屏幕
顺便说一句。 如果您不喜欢输入密码,尝试 PK 身份验证。
如何使用 PuTTy 完成此操作。
GNU Screen
BTW. If you don't like typing passwords, try PK auth.
How it's done with PuTTy.
可以使用 screen 打开其他终端,而无需再次进行身份验证。
屏幕还可以分离,以便您可以在注销后保持终端打开并稍后重新连接。 我在我的家庭服务器上使用它来保持 rtorrent 的打开状态。
It's possible to use screen to open other terminals without needing to authenticate again.
Screen can also detach so that you can leave terminal open after logging out and re-attach them later. I use this on my home server for keeping rtorrent open.