Created attachment 1790 [details] patch to re-create mux control socket Hello. This patch enables re-creation of the control socket for multiplexing. Without it, if ssh dies, it leaves socket in place, and newly started ssh cannot bind to it. I've posted this at Debian bugtracker. Colin Watson suggested there: === It seems to me that this patch makes it a bit too easy to accidentally trash an existing master just by setting ControlMaster to "yes", though. Wouldn't it be better to do something like pinging the master to find out if it's dead before recreating the socket, and disable multiplexing as before if it's still alive? That way there'd be no question about whether it's appropriate to recreate the socket. You could do the same kind of thing as 'ssh -O check' does. === It seems that ssh does muxclient() call before trying to create the new socket, so this should not be issue, but please re-check this. Thanks. -- WBR, Andrew
OpenSSH -current now atomically establishes a listening mux master socket at the specified location, so a client encountering a mux master socket that refuses connection can safely delete it and process to establish its own. This change will be released in OpenSSH 5.7, due in a couple of months.
Thanks, Damien. Can you provide a link to the vcs diff?
Ah, found it.
Move resolved bugs to CLOSED after 5.7 release