Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ControlMaster is not supported on Windows - find a workaround or document it #96

Closed
roblourens opened this issue May 3, 2019 · 16 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan ssh Issue in vscode-remote SSH

Comments

@roblourens
Copy link
Member

https://code.visualstudio.com/docs/remote/troubleshooting#_enabling-alternate-ssh-authentication-methods

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.

@roblourens roblourens self-assigned this May 3, 2019
@roblourens roblourens added doc ssh Issue in vscode-remote SSH labels May 3, 2019
@lars18th
Copy link

lars18th commented May 4, 2019

Hi,

And any other option for sharing SSH connections?

@roblourens
Copy link
Member Author

Not that I'm aware of.

@davidwin
Copy link

davidwin commented May 5, 2019

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.

@lars18th
Copy link

lars18th commented May 5, 2019

Hi @davidwin ,

I don't like to idea of leave the support of ControlMaster in WSL because:

  • This is restricted to last versions of Windows 10.
  • This doesn't work if you don't have WSL installed.

Please don't get me wrong. I love WSL, but I use other Windows versions without WSL.

@davidwin
Copy link

davidwin commented 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 ControlMaster support before anyone implements it natively for all Windows versions or not.

@lars18th
Copy link

lars18th commented May 5, 2019

Well, it's a workaround.

I agree, yes it is! 😉

@oxo42
Copy link

oxo42 commented Jun 6, 2019

How can I tell vscode to use my ssh.cmd file 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
Copy link
Member Author

My organisation uses 2fac for SSH login so I can't use this extension on my Windows laptop

It should work with 2fa as long as you set remote.SSH.showLoginTerminal

@mwt
Copy link

mwt commented 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 ControlMaster as 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
Copy link
Member Author

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
Copy link

Was remoting into a high-performance research cluster experiencing the same problem as @MattWThomas. Hardcoding one of the login node IPs worked for me!

@AceFire2014
Copy link

AceFire2014 commented Jul 4, 2019 via email

@roblourens
Copy link
Member Author

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
Copy link

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
Copy link
Member Author

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
Copy link
Member Author

I am calling this "experimental" but now you can try it by setting "remote.SSH.useLocalServer": true.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

8 participants