Closed
Description
Is there anyway to get around this limitation "VS Code Server requires outbound HTTPS (port 443) connectivity to update.code.visualstudio.com and marketplace.visualstudio.com"?
To clarify: will this work if the local os and remote machine both have ssh connectivity to each other but no outbound connectivity?
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
Chuxel commentedon May 2, 2019
@LesterCheng Currently the machine you connect to needs to have outbound connectivity to both update.code.visualstudio.com and marketplace.visualstudio.com. These are used to acquire and update the "VS Code Server" and the extensions installed remotely. So, if I'm understanding correctly, I think the answer to your question is no.
LesterCheng commentedon May 2, 2019
@Chuxel is there any possibility of getting a packaged version of the "VS Code Server" that could be loaded onto the remote machine manually to avoid creating an outbound connection?
kieferrm commentedon May 2, 2019
@LesterCheng not at this time.
LesterCheng commentedon May 2, 2019
@kieferrm Understood, thanks! Any plans to introduce something like this? Otherwise this issue can be closed.
Chuxel commentedon May 2, 2019
@LesterCheng Beyond VS Code server, extensions are also installed on the remote host from the marketplace. We are in preview, so while we don't have specific plans, we are interested in understanding what people need to shape our direction.
That said, our of curiosity, what is your use case? Is there anything in particular preventing you from getting out bound access that we should be aware of?
LesterCheng commentedon May 2, 2019
@Chuxel without getting into specifics, this is an enterprise environment where development is only done on remote machines which need to be ssh'd into. Neither the remote machine nor the local os (where you ssh from) have connectivity to outside connections. I'd be happy to continue this over email you if it would help. I think a similar scenario was mentioned in the blog announcing this release: "Because the code bases are so large, we see engineers at shops like Facebook (and Microsoft!) use editors like vim to work remotely against secure and powerful "developer VMs".
[-]Offline Connectivity[/-][+]Use VS Code Remote Development w/o marketplace, update connectivity[/+]Chuxel commentedon May 2, 2019
@LesterCheng Got it - interesting scenario. I changed the title and made it a feature request.
Is this due to security requirements? Happy to interact via email - you can find my mail in my GH profile (but I won't paste it due to crawlers.)
underchemist commentedon May 3, 2019
Just tagging on to say that I am also developing in a remote environment where we don't have access to outside internet except for certain mirrored repositories like pypi.
WSLUser commentedon May 3, 2019
I would like to add that I'm in the same situation as @underchemist. I will add supplement that with the caveat that my Windows VM can connect to the Internet to download extensions but in order to connect to the corporate network, I need to re-enable the VPN. The Linux server I develop on doesn't and will never have outside access. Everything is done using mirrored repos including PyPi as mentioned already. Basically I need extensions that I install locally to my VM to duplicate over to the server once I connect to it. A prompt that appears once it activates the ssh connection to the server asking if you would like to install and/or update the Linux extensions with a yes/no option to click on would be ideal. A status bar showing the transfer would great to see as well. This would be done through a sftp or scp session.
94 remaining items
roblourens commentedon Aug 27, 2019
And I've pushed a fix for the path issue on windows that @Helloimbob and @underchemist are seeing.
jjunac commentedon Aug 27, 2019
@roblourens I set the timeout to 1s and tried to wget something, and it is indeed trying 20 times:
On the other hand, I just did another test, and the path error is indeed fixed. However, I'm getting a
Failed to connect to the remote extension host server (Error: Connection error: Unauthorized client refused.)
error shortly after. Here are the logs:And here is the stack trace I'm getting in the JS console:
It seems to be linked to the extension server. Am I missing something ?
Thanks for your work
underchemist commentedon Aug 27, 2019
I can confirm that I can now connect to remote host by having my vs code client transfer the server code instead of fetching through wget. cheers.
roblourens commentedon Aug 27, 2019
Progress. @jjunac looks like you are now seeing #103 which means that you might not have a compatible glic version. Some details and tips here: https://code.visualstudio.com/docs/remote/linux#_remote-host-container-wsl-linux-prerequisites
jjunac commentedon Aug 28, 2019
@roblourens Indeed, the version of glibc on the machine is below the requirements. Thank you for the doc, I will see what I can do.
LiXiaYu commentedon Sep 10, 2019
Hi there.
Your method is cool! but I can't finish it because extension.js
changed form in version 0.46.0.
Could you help me see how to use it in the new version?
Thanks
lpetre commentedon Sep 19, 2019
@roblourens thanks so much for adding this! I've been eagerly awaiting it.
I'm having trouble with proxy settings on the local side, running on Windows with system proxy settings. I have no problem installing extensions locally, but with
allowLocalServerDownload=true
the client server download is failing:I'm not sure how to debug this further, can you help?