關於我

我的相片

在此提供一些有關你的資訊,以便其他人確認你是他們要找的Fai。

2008/12/29

Multiplexing ssh connnection

For record... we can configured OpenSSH to make shared connections (ie. 1 connection, many ssh shell)
http://linuxtoday.com/news_story.php3?ltsn=2008-12-29-003-35-OS-HL

Basically add 3 lines in /etc/ssh/ssh_config only:
Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p

Of course, we can set it to use multiplexing on some domains/hosts only by not using "Host *".