You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ControlMaster is not supported on Windows - find a workaround or document it #96
This feature is not supported on Windows. I don't think there's really a way around it, so we should indicate this in the docs.
Reacted by Sana Ajani, Panwen Wang, David Windehem, Uri Ishon, Yoan Dinkov, Ryan Sullivan, UnrealKazu, Lars The, Timo Aeckerle, Txanton Bejos and 2 more
While I think that ssh for Windows should be able to support ControlMaster with UNIX domain sockets being available for Windows 10 and all, it would be great if the extension could "trampoline" through ssh for WSL (which does support connection sharing). I do that a lot for e.g. Tasks and launching gdb. It could be as simple as a setting that allowed you to customize the ssh command, so one could specify wsl.exe ssh instead.
I suppose I could add a ssh.cmd script in the path that just calls the WSL version as well.
Well, it's a workaround. I think the possibility of specifying the ssh path (including any extra arguments) is generally useful though, whether it's used to get ControlMaster support before anyone implements it natively for all Windows versions or not.
Was remoting into a high-performance research cluster experiencing the same problem as Matthew Wilmer Thomas (@MattWThomas). Hardcoding one of the login node IPs worked for me!
Investigated this during July. We could run a server on the client to manage a connection to the host which will be shared by all windows. That way, opening a new window on the same host will not require any password entry.
the limitation is purely software, right? How about using the ssh2 npm package as a secondary connection option? I know you switched to the real client because of some missing authentication features, but apparently the missing features go both ways…
ssh2 doesn't solve this problem, we would still require a password entry per window. Reopening this because I'm still actively working on it, and it's on the iteration plan.
Activity
lars18th commentedon May 4, 2019
Hi,
And any other option for sharing SSH connections?
roblourens commentedon May 4, 2019
Not that I'm aware of.
davidwin commentedon May 5, 2019
While I think that ssh for Windows should be able to support
ControlMasterwith UNIX domain sockets being available for Windows 10 and all, it would be great if the extension could "trampoline" through ssh for WSL (which does support connection sharing). I do that a lot for e.g. Tasks and launching gdb. It could be as simple as a setting that allowed you to customize the ssh command, so one could specifywsl.exe sshinstead.I suppose I could add a
ssh.cmdscript in the path that just calls the WSL version as well.lars18th commentedon May 5, 2019
Hi David Windehem (@davidwin) ,
I don't like to idea of leave the support of
ControlMasterin WSL because:Please don't get me wrong. I love WSL, but I use other Windows versions without WSL.
davidwin commentedon May 5, 2019
Well, it's a workaround. I think the possibility of specifying the ssh path (including any extra arguments) is generally useful though, whether it's used to get
ControlMastersupport before anyone implements it natively for all Windows versions or not.lars18th commentedon May 5, 2019
I agree, yes it is! 😉
oxo42 commentedon Jun 6, 2019
How can I tell vscode to use my
ssh.cmdfile that actually calls WSL in the background?My organisation uses 2fac for SSH login so I can't use this extension on my Windows laptop
roblourens commentedon Jun 6, 2019
It should work with 2fa as long as you set
remote.SSH.showLoginTerminalmwt commentedon Jun 17, 2019
Is there any other way to solve the issue of connecting to systems that dynamically assign machines per connection? I cannot use
ControlMasteras suggested because of this issue. The help file at that link seems to imply that there are other solutions to the problem.I'm connecting to a compute cluster which dynamically assigns logins to different nodes.
roblourens commentedon Jun 17, 2019
You can hardcode an IP address of a specific machine that you want, that's the only other workaround I can think of unfortunately.
joshgraymd commentedon Jul 3, 2019
Was remoting into a high-performance research cluster experiencing the same problem as Matthew Wilmer Thomas (@MattWThomas). Hardcoding one of the login node IPs worked for me!
AceFire2014 commentedon Jul 4, 2019
roblourens commentedon Aug 5, 2019
Investigated this during July. We could run a server on the client to manage a connection to the host which will be shared by all windows. That way, opening a new window on the same host will not require any password entry.
wmertens commentedon Sep 23, 2019
the limitation is purely software, right? How about using the ssh2 npm package as a secondary connection option? I know you switched to the real client because of some missing authentication features, but apparently the missing features go both ways…
roblourens commentedon Sep 23, 2019
ssh2 doesn't solve this problem, we would still require a password entry per window. Reopening this because I'm still actively working on it, and it's on the iteration plan.
roblourens commentedon Oct 4, 2019
I am calling this "experimental" but now you can try it by setting
"remote.SSH.useLocalServer": true.