{ 5 comments… read them below or add one }

1 Robert de Bock 08.21.08 at 10:54 am

Wow, that is indeed a good trick! Never heard of these configuration variables.

Works on Mac OS X 10.5.4, the only remark;
- I have the options set for no host, so your ~/.ssh/config could just be like this:

ControlMaster auto
ControlPath /tmp/ssh-%r@%h:%p

- The manpage suggests to use the variables with different capitalization. See example above.

Regards and thanks for the great trick, indeed fast!

Robert de Bock.

2 hilbert00 11.11.08 at 7:21 am

I’m concerned about security. Is there any security issue using re-using ssh connections?

thanks

3 hypatia 02.03.09 at 12:21 pm

The ONLY draw back I’ve found to this is that because all subsequent SSH requests to the same host share the TCP connection, doing a bulk SCP will slow down the responsiveness of the interactive sessions. It’s not a problem most of the time.

4 silvere 03.15.09 at 10:33 am

why doesn’t it works in my cygwin?

The error is:
$ ssh sunjingwei@relay01
ssh_msg_recv: read: header
muxclient: msg_recv

thank u very much.

5 Tamas Herman 04.17.09 at 11:30 pm

$ ssh -fNM eta
$ ssh eta ls
mm_receive_fd: no message header
muxserver_accept_control: failed to receive fd 0 from slave
ssh_msg_recv: read: header
muxclient: msg_recv

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , , , , , ,

Previous post: psql: FATAL: Ident authentication failed for user "username" Error and Solution

Next post: Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository