Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

Support for Control Master

Open dwatley opened this issue 6 years ago • 20 comments

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.

dwatley avatar Jan 23 '19 18:01 dwatley

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.

manojampalam avatar Jan 23 '19 20:01 manojampalam

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.

lars18th avatar May 04 '19 11:05 lars18th

bump any status?

musm avatar Sep 23 '20 08:09 musm

This is exactly the older https://github.com/PowerShell/Win32-OpenSSH/issues/405 I also wish it was fixed/solved...

psz2036 avatar Jan 13 '21 09:01 psz2036

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.

mew1033 avatar Feb 10 '21 00:02 mew1033

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 avatar Feb 10 '21 20:02 lgretton

@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. ¯\_(ツ)_/¯

mew1033 avatar Feb 10 '21 20:02 mew1033

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.

musm avatar Feb 18 '21 00:02 musm

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?

therealpxc avatar Sep 17 '21 18:09 therealpxc

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

comio avatar Sep 27 '21 10:09 comio

Just back for the yearly ping. Any updates on possibly bringing ControlMaster to powershell ssh?

Thanks!

mew1033 avatar Oct 17 '22 06:10 mew1033

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.)

psz2036 avatar Mar 24 '23 20:03 psz2036

Do we think ControlMaster support will ever appear? This particular issue recently celebrated its fifth birthday :-(

lgretton avatar Feb 14 '24 07:02 lgretton

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.

dveni avatar Jun 19 '24 16:06 dveni