Skip to content

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

Closed

Description

@roblourens

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.

Activity

  1. self-assigned this
    on May 3, 2019
  2. added
    ssh
    on May 3, 2019
  3. lars18th commented on May 4, 2019

    @lars18th

    Hi,

    And any other option for sharing SSH connections?

  4. roblourens commented on May 4, 2019

    @roblourens
    MemberAuthor

    Not that I'm aware of.

  5. davidwin commented on May 5, 2019

    @davidwin

    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.

  6. lars18th commented on May 5, 2019

    @lars18th

    Hi David Windehem (@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.

  7. davidwin commented on May 5, 2019

    @davidwin

    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.

  8. lars18th commented on May 5, 2019

    @lars18th

    Well, it's a workaround.

    I agree, yes it is! 😉

  9. oxo42 commented on Jun 6, 2019

    @oxo42

    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

  10. roblourens commented on Jun 6, 2019

    @roblourens
    MemberAuthor

    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

  11. mwt commented on Jun 17, 2019

    @mwt

    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.

  12. roblourens commented on Jun 17, 2019

    @roblourens
    MemberAuthor

    You can hardcode an IP address of a specific machine that you want, that's the only other workaround I can think of unfortunately.

  13. joshgraymd commented on Jul 3, 2019

    @joshgraymd

    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!

  14. AceFire2014 commented on Jul 4, 2019

    @AceFire2014
  15. roblourens commented on Aug 5, 2019

    @roblourens
    MemberAuthor

    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.

  16. added
    feature-request
    and removed on Aug 27, 2019
  17. added this to the August 2019 milestone on Aug 27, 2019
  18. wmertens commented on Sep 23, 2019

    @wmertens

    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…

  19. roblourens commented on Sep 23, 2019

    @roblourens
    MemberAuthor

    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.

  20. roblourens commented on Oct 4, 2019

    @roblourens
    MemberAuthor

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

  21. locked and limited conversation to collaborators on Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requeston-testplanssh

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions