Re:VPN over SSH? The Socks Proxy
by gopalv on Monday March 29, 2021 @03:31PM
(#26627066)
> 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.
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.
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
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.