by darklajid · 15y ago · 0 comments
I was really hoping for a way to have a windows equivalent of ssh controlmaster.
On the bright side: PuTTY is part of my toolbelt for ages and I cannot live without it. I'm glad to read that it's still alive and being developed.
It's a fairly effective way of getting around situations where the up-front cost of establishing the connection is high (high-latency remote connections, in particular).
You _can_ create tunnels via ssh, even with PuTTY. You _cannot_ use the feature I'm looking for. Tongue in cheek I'd say check the docs on the ControlMaster feature, but this is what it boils down:
Terminal 1:
ssh someHostThatYouNeedForLotsOfThings [options here]
(.. wait for the negotiation, connect. Good)
Terminal 2 to N
ssh thatVerySameHost [options here]
(reuses the handshake, is _much_ faster to connect)
Why do I want that? Couldn't I just use one connection and start tmux/screen? Turns out, no, I cannot. As soon as you have anything that actually needs to send data from your machine to the target host (i.e. nothing interactive. Think scp. git.) you need to open a new connection - and that's when I'm hoping for this feature on Windows.