Win32-OpenSSH
Win32-OpenSSH copied to clipboard
Support for Control Master
I noticed in the previous roadmap the Control Master feature was not going to be ready for the initial release. Any plans to support this in the future?
We have use cases for multiplexing ssh connections.
Its not in the horizon yet, unfortunately. It relies on a particular feature of Unix Domain sockets ( passing ancillary data ), that's not easy to realize in Windows.
Hi @manojampalam ,
Perhaps it's best to not use Unix Domain sockets (only available over WSL) and implement a simple communication over pipes.
In any case I hope you can implement it soon, as the VSCode Remote SSH uses this functionality.
Regards.
bump any status?
This is exactly the older https://github.com/PowerShell/Win32-OpenSSH/issues/405 I also wish it was fixed/solved...
I've been migrating over from Putty/Kitty to OpenSSH on Windows 10. Just realized that this isn't supported yet. Here's my 👍 to adding ControlMaster support. Would love to see it.
I'm similar to mew1033, just migrated from PuTTY and multiplexing is the one feature that's preventing me from being able to drop PuTTY altogether.
@lgretton This is definitely not multiplexing, but you can get sucky fake multiplexing using ProxyCommand. I did this:
Host myTunnel
HostName iwantcontrol.master
ForwardAgent yes
DynamicForward 29123
Host crappymultiplexedhost
HostName hostIWant
ProxyCommand ncat --proxy-type socks5 --proxy localhost:29123 %h %p
It kinda sorta works. ¯\_(ツ)_/¯
Does MSFT still maintain this package? IMO it would be better for the team to upstream the changes. We are getting updates at a glacial pace and we still have many missing features.
Can we at least have the client report that the feature is not supported instead of printing opaque errors about sockets, as though the feature were implemented but happened to have suffered some incidental mishap?
Connection multiplexing should be a must-to-have feature. Can you increase the priority of this feature?
thanks a lot (and thanks to listen your community).
ciao
luigi
Just back for the yearly ping. Any updates on possibly bringing ControlMaster to powershell ssh?
Thanks!
Note comment in #405 https://github.com/PowerShell/Win32-OpenSSH/issues/405#issuecomment-1481385347 about workaround with "ssh -O proxy". (I have not tried myself.)
Do we think ControlMaster support will ever appear? This particular issue recently celebrated its fifth birthday :-(
Not really a solution for control master support but a possible workaround for multiplexing is using wsl ssh, I just set it up for vscode remote dev (following this: https://github.com/microsoft/vscode-remote-release/issues/937#issuecomment-1423101222) and it seems to work fine.
The idea is basically to use a bat file containing this to bridge to wsl ssh:
C:\Windows\System32\wsl.exe ssh -J [DESTINATION] %*
where DESTINATION is the already open ssh tunnel. This is a bit ugly, it would be nice to get support for multiplexing on windows.