On 2005-10-25 15:39:40 +0200, Vincent Lefevre wrote: > The OpenSSH client should have an option to open an independent master > connection automatically when there isn't one already, and close it > when the last slave ssh connection closes. > > The problem with "ControlMaster auto" is that closing the first ssh > connection (i.e. the master one) closes all the slave connections.
And currently, there doesn't seem to be any easy workaround. I thought about writing a wrapper script doing a "ssh -fMN $host" first (before the "real" connection). But ssh does this connection before checking whether a ControlSocket file already exists. This behavior should be changed IMHO, because if such a file already exists, then the command will fail (without executing anything on the remote machine); thus there is here no reason to connect. Checking for the ControlSocket file manually is not very practical as the filename depends on various parameters (the host with a possible translation from the .ssh/config file, the port and the remote login). Even getting the $host value from the arguments is not very easy due to the possible options. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

