4 ms·
One other super-interesting feature is connection multiplexing and keeping connection alive with the ControlMaster and ControlPath directives in your ~/.ssh/con
by znpy 1y ago
One other super-interesting feature is connection multiplexing and keeping connection alive with the ControlMaster and ControlPath directives in your ~/.ssh/config file.
The nice thing is that it makes opening a new ssh connection much faster, which if you make a lot of connections, it can be very handy.
See https://ldpreload.com/blog/ssh-control https://ldpreload.com/blog/ssh-control for some examples
- da-x 1y agoNote that it has one pitfall that is hard to notice: if you a use per-invocation `-o SendEnv`, that gets ignored in favor of the background ssh persistent connection that is keeping the session up. In other words, your connection bear the `SendEnv` of that initial connection and not of the new ones you are creating. No warning is printed.