3 ms·
> Can multiplexing be disabled via `sshd_config` The multiplexing you can disable on the server-side is a different multiplexing, but also another useful ssh f
by gopalv 6y ago
> Can multiplexing be disabled via `sshd_config`
The multiplexing you can disable on the server-side is a different multiplexing, but also another useful ssh feature.
If you have a workload that involves sort of firing off many commands over ssh one after the other (i.e next command is based on the output of the previous), then you can make them all grab a prenegotiated ssh connection to speed it up.
Basically, I almost always have
ControlPath ~/.ssh/control-%r@%h:%p
ControlPersist 1m
in my ssh configs to take advantage of this in my Makefiles which need to ssh across for various reasons. Ssh commands to a "central location" are great for initializing env vars with AWS keys, instead of encoding them in shell scripts - easiest way to prove your identity is to prove you have your private key.