Skip to content

Please support macOS SSH host #24

Closed

Description

@jamiewest

There are many scenarios where the development stack lives on macos but we have the need to develop locally on windows or linux. Specifically I am thinking of flutter. cc Danny Tuppeny (@DanTup)

Activity

  1. changed the title [-]Please support MacOS SSH Host[/-] [+]Please support macOS SSH host[/+] on May 2, 2019
  2. added
    feature-request
    mac
    ssh
    on May 2, 2019
  3. sharumpe commented on May 15, 2019

    @sharumpe

    Or: all of my development is done from a Mac, unless I'm working remotely in which case I'm on Windows 10. Thank you for the hope of being able to use VSCode remotely.

  4. brysgo commented on May 29, 2019

    @brysgo

    Anyone who is developing a cross platform mobile app needs to test iOS eventually, for anyone who isn't already on a Mac, that means using a mac to get iOS working. Seems like an excellent use case for vscode remote.

  5. tru commented on Jun 7, 2019

    @tru

    Is this something that has to be done by the VSCode team itself or what could the open source community help out with?

  6. DanTup commented on Jun 7, 2019

    @DanTup

    It doesn't seem like the extensions are open source (see https://code.visualstudio.com/docs/remote/faq#_license-and-privacy), so that might limit what the community can do.

    It's not clear to me what the limitation is though.. currently connecting to macOS reports it's "not Linux x86_64" so it seems like a deliberate check, but I'm not sure what the significant difference is that prevents it from working (as I understand it, a lot of the code that runs the extension host already runs on Mac in a non-remote session).

  7. lwshang commented on Jun 10, 2019

    @lwshang

    I have an iMac for work in office and a MacBook for personal use in home. It'll be great to use vscode to edit files on the other mac remotely. Just another use case for your interests.

  8. yuhr commented on Jun 11, 2019

    @yuhr

    This is must be

  9. jpike88 commented on Jun 19, 2019

    @jpike88

    roblourens could you provide an explanation as to why this issue isn't getting a clear response?

    As far as I can tell, osx support shouldn't be difficult. What kind of blockers would make this not just something that was done alongside Linux?

  10. JtMotoX commented on Jun 19, 2019

    @JtMotoX

    roblourens could you provide an explanation as to why this issue isn't getting a clear response?

    As far as I can tell, osx support shouldn't be difficult. What kind of blockers would make this not just something that was done alongside Linux?

    This Remote Development feature runs client-side AND server-side processes. There is client-side support for Windows, Mac, and Linux. The server-side code (link below) is only compatible with Linux. I'm sure once they have worked out all the bugs then they will also offer a Mac and Windows version of vscode-server, which I hope is soon, but it's not as simple as removing a "blocker" that they put in there just to annoy us.

    https://update.code.visualstudio.com/commit:553cfb2c2205db5f15f3ee8395bbd5cf066d357d/server-linux-x64/stable

  11. cuibonobo commented on Aug 14, 2019

    @cuibonobo

    As an update to this issue, I recently tried to connect to a remote Mac and the installer seemed to make an attempt, but ultimately failed because the sed command works differently on Macs.

    Here's my log output:

    [18:27:34.931] [email protected]
    [18:27:34.931] win32 x64
    [18:27:34.932] SSH Resolver called for "ssh-remote+mac", attempt 1
    [18:27:34.932] SSH Resolver called for host: mac
    [18:27:34.932] Setting up SSH remote "mac"
    [18:27:34.945] Using commit id "036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8" and quality "stable" for server
    [18:27:34.948] Testing ssh with ssh -V
    [18:27:34.983] ssh exited with code: 0
    [18:27:34.983] Got stderr from ssh: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.4
    [18:27:34.983] Running script with connection command: ssh -o ClearAllForwardings=true mac bash
    [18:27:34.984] Install and start server if needed
    [18:27:35.110] > 
    [18:27:35.110] Got some output, clearing connection timeout
    [18:27:35.322] > Running remote connection script
    > sed: 1: "s/^linux //gi": bad flag in substitute command: 'i'
    > Unsupported architecture:
    > 0d6e33fa-7e6c-40cb-8985-9877bb252cd5##27##
    > 
    [18:27:35.323] Received install output: 0d6e33fa-7e6c-40cb-8985-9877bb252cd5##27##
    [18:27:35.323] Unsupported architecture
    [18:27:35.323] The remote server architecture is not supported
    [18:27:35.323] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"ExitCode"},"measures":{"resolveAttempts":1,"exitCode":27,"retries":1}}
    [18:27:35.323] ------
    
    
    
    
    [18:27:35.589] "install" terminal command done
    [18:27:35.589] Install terminal quit with output: 
    
    
  12. Hultner commented on Aug 14, 2019

    @Hultner
  13. 30 remaining items

  14. DanTup commented on Jan 16, 2020

    @DanTup

    It's not as straight forward, but FWIW depending on your needs you can use VS Online's "self-host" setup to somewhat achieve this with some caveats:

    https://docs.microsoft.com/en-gb/visualstudio/online/how-to/vscode#self-hosted

    You register the Mac as a VS Online "environment" and then from another machine (eg. Windows) you connect VS Code to that Online environment. It requires an Azure account and I think it's all proxied through Azure - but as far as I can tell it's completely free (as long as you're using your own attached environment, and not spawning up an Azure machine).

    It's a bit quirky (for ex. you have to have installed and launched VS Code on the Mac), but doing this I was able to launch Flutter apps on a simulator running on the Mac (I have no reason to believe it won't work with a physical iPhone, but don't have one to test) from Windows (including VS Code on Windows showing the iPhone Simulator as the selected Flutter device).

  15. FrobtheBuilder commented on Jan 27, 2020

    @FrobtheBuilder

    Danny Tuppeny (@DanTup)'s solution works, pretty well in fact as there seems to be feature parity with remote SSH. The only caveat is the latency which is pretty bad since the connection is being routed through Microsoft's infrastructure, it makes using the integrated terminal pretty frustrating. Otherwise, it's quite usable. Thanks!

  16. roblourens commented on Feb 17, 2020

    @roblourens
    Member

    This now works in the Remote-SSH Nightly extension. Please try it out! I do have some more testing to do but it should basically work.

  17. added this to the February 2020 milestone on Feb 17, 2020
  18. jamiewest commented on Feb 17, 2020

    @jamiewest
    Author

    Thank you!

  19. yueyericardo commented on Feb 17, 2020

    @yueyericardo

    THANKS!!!!!
    It's working.

    FYI
    Download VS Code Insider.
    Then search Extenstion Remote - SSH (Nightly)

    image

  20. slu216 commented on Mar 9, 2020

    @slu216

    Hi,
    Has anyone tried out this new feature with v1.43 for macOS host?
    I am seeing error about something like this (I replace the directory path by $HOME)

    [15:55:27.345] > Server did not start successfully. Full server log at _$HOME_/.vscode-server/.78a4c91400152c0f27ba4d363eb56d2835f9903a.log >>>
    [15:55:27.349] > _$HOME_/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/server.sh: line 12: 22345 Killed: 9               "$ROOT/node" ${INSPECT:-} "$ROOT/out/vs/server/main.js" "$@"
    > <<< End of server log
    > 87e8cfe4172e##32##
    [15:55:27.350] Received install output: 87e8cfe4172e##32##
    [15:55:27.351] Terminating local server
    [15:55:27.352] Resolver error: The VS Code Server failed to start
    [15:55:27.362] ------
    
  21. brucejo75 commented on Mar 10, 2020

    @brucejo75

    I just set up remote ssh with v1.43. All is working as expected for me! Yay.

  22. david02871 commented on Mar 13, 2020

    @david02871

    Could someone point me to instructions on how to set up a MacOS SSH host and connect with VSCode?
    This was announced in the February release but the documentation still says a MacOS SSH server is "Not supported yet."

    https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-server

  23. brucejo75 commented on Mar 13, 2020

    @brucejo75

    I followed the directions here.

    For the mac server just enable remote login, that automatically starts up the SSH server.

    https://www.booleanworld.com/access-mac-ssh-remote-login/

  24. roblourens commented on Mar 13, 2020

    @roblourens
    Member

    Docs are getting updated - sorry about that and yes, thanks Bruce Johnson (@brucejo75)

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

Metadata

Metadata

Assignees

Labels

feature-requestmacon-testplanssh

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions