Don Marti

Tue 08 Nov 2005 04:52:35 PM PST

SSH Connection Sharing

Use ssh ControlMaster to share one TCP connection among multiple ssh instances and speed things up when you run many commands over ssh.

How much time does it really buy you? A quick test of

date; for i in seq 1 40 ; do ssh true; done; date

takes 4s with a "Master" process running; 24s without.

(via sneakums.)