-
Notifications
You must be signed in to change notification settings - Fork 293
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
Cannot download VS Code Remote Development via SSH when proxy is needed #78
Comments
@dlordi at the end of the instructions you linked to there's this section: If none of the other links it points to gives you any help maybe worth opening an issue on the dedicated GitHub project rather than this one. Though I guess some of the MS folk can move this one across if they wish. |
@dlordi can you pls open the Remote-SSH output channel and paste here what's in there? |
Same issue, I am behind a corporate proxy. Can reach update.code.visualstudio.com from remote host.
[Remote-SSH output channel]
|
same issue,
|
Same issue for me (I'm behind a corporate proxy).
Could you provide an offline installation for all dependencies for this extension? |
@kieferrm
"install" terminal command done |
@kieferrm
how to use wget with "use ‘--no-check-certificate’" or modify some Configuration |
This can be fixed by setting your proxies wget will use in .wgetrc in your home directory: ~/.wgetrc
This fixed my issue of wget hanging and it worked after doing this. |
@hkarpf Thanks that solve my problem. Now it is the extensions that won't install on SSH:remote: getaddrinfo ENOTFOUND ms-python.gallery.vsassets.io ms-python.gallery.vsassets.io:443 |
@hkarpf this is still not working for me. Also, I don't like it. |
.wgetrc only works if wget is available on the remote host... On our machines there is no wget only curl... It fails for me, cause I need to set a proxy... Any solution for that? My output:
|
@alexrjs There is a similar file for curl.... ~/.curlrc:
|
I do this ,and sloved my problem; |
Oh, you might want to update this page: https://code.visualstudio.com/docs/remote/linux
And that's apparently clearly not true, since you need this 'server component' as well... |
I'm experiencing a similar issue, where the wget command for downloading the server component is timing out because it can't get through the proxy. I have the What kind of shell is vscode using to download the remote server? (This might explain in my cae why these environment variables aren't being picked up?) |
IMO, they should have the VSCode extension push the files over using SCP. |
IMO it's really weird that the extension tries to download something with wget in the server. |
Can anyone confirm last releases fixed this issue? I think it now uses VSCode extension installed on client workstation as source for the remote server... so, they basically implemented it as described in these comments |
It doesn't work for me:
VS Code Insiders:
|
We are running into this issue when sshing into an environment that is airgapped from the internet due to security reasons. Wget or any other protocol attempting to reach an internet based resource will fail. Can this feature be turned off to allow the ssh session to be established? I just downloaded the latest release and it's giving the error:
So it does not appear to be pushing the needed files from VScode itself as mentioned above. |
I have also found this issue. My linux server can't connect to the internet, so it would be great that the extension would install VS Code Server pushing the install file through scp. |
I have the same problem. It says
|
I am also facing this issue. And in addition, I checked whether wget is actually working on my remote machine, and it is working.
However, through VS code:
|
I found out, there is a redirection from https://update.code.visualstudio.com to https://az764295.vo.msecnd.net/. So the download url https://update.code.visualstudio.com/commit:f06011ac164ae4dc8e753a3fe7f9549844d15e35/server-linux-x64/stable will redirect to https://az764295.vo.msecnd.net/stable/f06011ac164ae4dc8e753a3fe7f9549844d15e35/vscode-server-linux-x64.tar.gz. If you are behind a proxy, you need ensure both update.code.visualstudio.com and .msecnd.net are in the proxy white list. |
I am also facing this issue |
We're also needing an offline solution for this. I'm getting a version mismatch error trying the manual options above. |
Same problem here... |
I have the same problem after updating the extension.. Now I downgraded "Remote - SSH" to 0.46.0 and "Remote Development" to 0.16.0 and then everything worked... |
The steps commented above to install manually worked for me on the latest versions. I expect that if there are any updates, I will need to reinstall manually with the new commit id. |
How can I manually download vscode-server-insiders commit id: bdd1971f2cd9d08a8a90e02740f1850afe03da66 specifically? The download URL does not show up in the terminal logs! |
I couldn't find it in my terminal logs either, but the "manual install" comment had this in it On an unrelated note, I got that part working, but now it's failing with
EDIT The above error is solved by @adamido's answer above. You'll see a file in your
|
Also, is anyone else here trying to get this set up because VSCode is so slow when running over SSH/X11 Forwarding? Weirdly for me, if I fire up Pycharm or CLion through X11 they are fast, but not VS-Code, hence why I'm attempting this solution. |
Go to Remote-SSH: Settings and turn on Allow Local Server Download option. |
For the option "Allow Local Server Download" I would like to have an option for setting proxy for download on client. Because I got this below, when I enabled "Allow Local Server Download" [17:15:53.938] Got request to download on client for x64 Error: Failed to download VS Code Server: HTTP 407 - Proxy Authentication Required I am pretty sure, that this extension doen't use proxy setting (http.proxy and http.proxyAuthorization) in settings.json and envrionment variable http_proxy and https_proxy are also ignored. |
I'm still encountering this issue:
None of the suggested fixes of modifying .wgetrc work for me |
I have the same issue as @jia2 but I'm not sure why its not authenticating as my understanding is vs code should just use chronium proxy settings which works for my normal vs code session. "For the option "Allow Local Server Download" I would like to have an option for setting proxy for download on client. Because I got this below, when I enabled "Allow Local Server Download" [17:15:53.938] Got request to download on client for x64 |
@jia2 Huge thanks. It's maddening that 1) this is still an issue 2) the log is totally unhelpful, it just says "downloading abc". From where does it download? Where to? - have fun figuring out for yourself. No chance to diagnose the problem if something went wrong during download/unpacking (in my case my |
I think that I have fixed this in #1903 in the latest nightly version of the extension and would really appreciate it if someone would try it out. If the download fails on the remote, it should download locally and now should respect your locally configured proxy. If you still have issues, please share the log from the Remote-SSH output channel. |
Greetings and thank you for the great extension. I am getting the following error while trying to connect from my Mac to Windows Server 2016 (with OpenSSH v8.1.0.0p1-Beta). Any clue on how to solve this?
I am using VS Code Insider:
Extensions:
|
I got the same error as @geekox86 I was attempting to remote into a Windows Server 2016 box in AWS on a corp domain. I got around it by copying the base64 ps script from the client log, then opening a remote desktop and put the decoded script on the box, adding
Then running the script with PowerShell 6 ( |
@roblourens yeah, I know. It was just meant to be additional information. The requested url when you hit with |
It should redirect you to |
|
So, it is now https... but earlier today it was http. |
I've setup a SSH connection following instructions on https://code.visualstudio.com/docs/remote/ssh. It seems I can login on remote host but I got this error:
Downloading VS Code Server failed. Please try again later.
I've checked requirements for VS Code Remote and I can both reach update.code.visualstudio.com and marketplace.visualstudio.com from remote host
Thanks!
The text was updated successfully, but these errors were encountered: