Re:Getting started with Salt: a Puppet/Chef alternative buil...
by jewel on Tuesday February 19, 2013 @12:34PM
(#5245663)
To speed up ssh login time, try adding the following to your ~/.ssh/config:
Host *
ControlMaster auto
ControlPath ~/.ssh/auth/%r@%h:%p
ControlPersist yes
For me this changes connection times from 1.7 seconds to 0.189 seconds when connecting to a host over the internet.
Re:Getting started with Salt: a Puppet/Chef alternative buil...
by gingerlime on Tuesday February 19, 2013 @02:58PM
(#5246661)
Interesting tip. Thanks!
Note that you might need to create the auth subfolder using `mkdir ~/.ssh/auth`, otherwise it might throw an error on connection: `muxserver_listen bind(): No such file or directory`
Re:Getting started with Salt: a Puppet/Chef alternative buil...
by mintplant on Tuesday February 19, 2013 @12:56PM
(#5245829)
What does this do?
Re:Getting started with Salt: a Puppet/Chef alternative buil...
by _djo_ on Tuesday February 19, 2013 @01:13PM
(#5245938)
Maintains a persistent ssh connection to each host once the first is created. Any subsequent ssh commands will be sent over the existing channel, skipping the time-consuming handshake process.
That might sound like a boring detail but it opens up many possibilities by doing things like asking all machines for their system time and then doing something with it.