复用已经打开的iterm链接

来源:互联网 发布:ida pro 7.0 mac 编辑:程序博客网 时间:2024/06/05 20:53

1.在windows里面,用xshell等连接服务器时,想快速打开当前的窗口一样的终端窗口可以复制一个当前的链接窗口即可,但是在mac里面用iterm没有这样的功能,怎么办呢?

2.既然软件不能自带这样的功能,那就我们自己搞啦~

a.打开~/.ssh/config,如没有就touch ~/.ssh/config

b.在里面参加如下内容:

Host *ControlMaster autoControlPath ~/.ssh/%r@%h:%p
这样就能在ssh user@servername.com时,复用当前已经打开的链接了,不用再输入密码了。

enjoy it!



reference:

http://www.revsys.com/writings/quicktips/ssh-faster-connections.html

https://developer.rackspace.com/blog/speeding-up-ssh-session-creation/





0 0
原创粉丝点击