You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote-SSH - configure remote host via ssh instead of wget or direct web request #161
Hi,
Remote develop is really an exciting feature for vscode, but there is still a little work to be improved I think, that is configure / download on remote by ssh connection. This is really needed for some server behind a firewall.
So, current steps are:
Local (Windows) configure ssh pubkey authentication.
changed the title [-]Remote-SSH - configure remote host via ssh not wget or direct web request[/-][+]Remote-SSH - configure remote host via ssh instead of wget or direct web request[/+]on May 6, 2019
This is very important issue. We can not work with this at all. All our servers are hosted in isolated network. Those servers does not have access to the Internet. The manual installation can be performed or deliver package from developer workstation.
Can you add an option to manually disable this update process at least? We want to check new extension and help making it stable.
Reacted by Sriram Krishnaswamy, MOZGIII, Yuntao, Subodh Chettri, 64116278, sky92zwq, Sergey, dotdance, Matthew Balman, xgbj and 6 more
I tried to use Remote SSH on a local server. The server doesn't have Internet access for security reasons.
A Remote SSH job tries to download VS Code Server through wget, but it fails because there's no Internet connection.
PyCharm doesn't have this issue because the "server" part gets uploaded by the client and it's not downloaded from the Internet.
Can you provide a procedure to upload the required VS Code Server through the VS Code client instead of relying on the server's Internet connection? Internet access for the server should not be mandatory.
Thank you.
Reacted by Edward O, Maciej Klemarczyk, Sergey, mbronni, Matthew Balman and Hombing
Also struggling with this.
It would probably be enough if there were documented steps for manually performing the installation on the server with a zip file.
I also would love to have this feature - some remote servers I work with have no outbound Internet access. It would be great if there were a configuration option to download all necessary files via my local Internet and push to remote server via SSH, then install there.
Manual instructions would also work, but ideally the Remote-SSH tool would handle everything for the user.
Isn't it possible in the meantime to do a manual install of the needed components ?
retrieve files from desktop machine, copy to remote server and deploy them in the expected location.
Could you provide some hints in the faq.
I can help for the faq article if someone gives me some hints in order to make it work
I know that Microsoft wants everyone to work in the cloud and if possible Azure, but it's not possible for many reasons.
This request is legitimate for many developers, but seems poorly taken into account in products like VSCode or VisualStudio.
It is currently a brake on the massive adoption of these products which, I admit, are very functional as long as we stay connected.
From a user perspective, we don' t want to bother system administrators just for installing/updating an editor. I want everything installed inside my home.
imo there should be 2x client side config options.
wget as it is currently setup
ssh -R port is used to create dynamic socks proxy on host and reverse forwarded to server and server uses .js functionality to reproduce wget through the socks proxy
as a work around I have done the following:
Desktop ~/.ssh/config
...
Host *
RemoteForward 54321
...
Remote: ~/bin/wget in which ~/bin is added to PATH via .bashrc
server = 127.0.0.1
server_port = 54321
server_type = 5
note tsocks binary has been scp-ed to ~/bin/tsocks and ~/opt/tsocks/ has been created with libtsocks.so which is normally stored in /usr/lib64/libtsocks.so
This is a work around that allows me to have wget functionality with out messing with anything outside my profile to get it to work (eg: no root required ... even though I have it).
And another difference to pycharm is , remote-ssh in pycharm could remote into a docker container ,but vscode could not.
Yudong Wang (@bro3cat) This is off topic for this issue, but check out the Remote - Containers extension for that capability. See here for details on connecting to a remote docker host if that's what you are looking to do. Please open a separate issue if you're hitting problems so we can take a look. VS Code can connect to containers, the issue here is specifically that VS Code requires that the container or SSH host have access to the internet to do so.
If you can't get caffeineaddiction's fix working #161 comment, another workaround was posted on stackoverflow by aviso. It was easy for me to get the stackoverflow solution working, but I suspect it will be a bit more of a pain in the long run than the tsocks method here due to vscode/extension updates likely needing manual intervention if not disabled. I just couldn't get tsocks up and running, so it was nice to have a second option.
Please try installing the nightly version of the ssh extension, then setting "remote.SSH.allowLocalServerDownload": true. This should cause it to download the extension on your local machine then copy it over to the host via scp. Please file issues if you have any problems.
Reacted by caffeineaddiction, David Parsley and ironbishop
Activity
[-]Remote-SSH - configure remote host via ssh not wget or direct web request[/-][+]Remote-SSH - configure remote host via ssh instead of wget or direct web request[/+]mklemarczyk commentedon May 6, 2019
This is very important issue. We can not work with this at all. All our servers are hosted in isolated network. Those servers does not have access to the Internet. The manual installation can be performed or deliver package from developer workstation.
Can you add an option to manually disable this update process at least? We want to check new extension and help making it stable.
ekerazha commentedon May 7, 2019
I tried to use Remote SSH on a local server. The server doesn't have Internet access for security reasons.
A Remote SSH job tries to download VS Code Server through wget, but it fails because there's no Internet connection.
PyCharm doesn't have this issue because the "server" part gets uploaded by the client and it's not downloaded from the Internet.
Can you provide a procedure to upload the required VS Code Server through the VS Code client instead of relying on the server's Internet connection? Internet access for the server should not be mandatory.
Thank you.
thernstig commentedon May 11, 2019
Isn't this a duplicate of #15, which was opened 4 days before this?
eddy-geek commentedon May 12, 2019
atomgalaxy commentedon Jun 7, 2019
I need this too.
mbronni commentedon Jun 7, 2019
Same for me, no internet connection on remote machine but on client one. There is also no root/sudoer user on remote.
mightypenguin commentedon Jun 13, 2019
Also struggling with this.
It would probably be enough if there were documented steps for manually performing the installation on the server with a zip file.
magic-lantern commentedon Jun 14, 2019
I also would love to have this feature - some remote servers I work with have no outbound Internet access. It would be great if there were a configuration option to download all necessary files via my local Internet and push to remote server via SSH, then install there.
Manual instructions would also work, but ideally the Remote-SSH tool would handle everything for the user.
gturbo commentedon Jun 18, 2019
Isn't it possible in the meantime to do a manual install of the needed components ?
retrieve files from desktop machine, copy to remote server and deploy them in the expected location.
Could you provide some hints in the faq.
I can help for the faq article if someone gives me some hints in order to make it work
Argonaute commentedon Jun 19, 2019
I know that Microsoft wants everyone to work in the cloud and if possible Azure, but it's not possible for many reasons.
This request is legitimate for many developers, but seems poorly taken into account in products like VSCode or VisualStudio.
It is currently a brake on the massive adoption of these products which, I admit, are very functional as long as we stay connected.
avylove commentedon Jun 19, 2019
I create #738 requesting the extension utilize a system installed vscode server, which would be a much cleaner solution and more enterprise-friendly.
1 remaining item
xgdgsc commentedon Jul 18, 2019
From a user perspective, we don' t want to bother system administrators just for installing/updating an editor. I want everything installed inside my home.
caffeineaddiction commentedon Jul 18, 2019
imo there should be 2x client side config options.
ssh -R portis used to create dynamic socks proxy on host and reverse forwarded to server and server uses .js functionality to reproduce wget through the socks proxyas a work around I have done the following:
Desktop
~/.ssh/configRemote:
~/bin/wgetin which~/binis added toPATHvia .bashrcRemote:
~/opt/tsocks/tsocks.confnote
tsocksbinary has been scp-ed to~/bin/tsocksand~/opt/tsocks/has been created withlibtsocks.sowhich is normally stored in/usr/lib64/libtsocks.soThis is a work around that allows me to have wget functionality with out messing with anything outside my profile to get it to work (eg: no root required ... even though I have it).
educhana commentedon Jul 22, 2019
This is key. Many remote servers are firewalled.
bro3cat commentedon Jul 28, 2019
And another difference to pycharm is , remote-ssh in pycharm could remote into a docker container ,but vscode could not.
Chuxel commentedon Jul 28, 2019
Yudong Wang (@bro3cat) This is off topic for this issue, but check out the Remote - Containers extension for that capability. See here for details on connecting to a remote docker host if that's what you are looking to do. Please open a separate issue if you're hitting problems so we can take a look. VS Code can connect to containers, the issue here is specifically that VS Code requires that the container or SSH host have access to the internet to do so.
vinlyx commentedon Jul 31, 2019
Same for me, remote server does not have internet connection due to security reason.
tbennett6421 commentedon Aug 2, 2019
subscribed, this would make our lives so much easier developing services that run on remote hosts. Until then, we can't use this application
nathanptackett commentedon Aug 9, 2019
This is a needed feature for enterprise development!
caffeineaddiction commentedon Aug 9, 2019
see my previous comment for temp work around
#161 (comment)
dlithio commentedon Aug 12, 2019
If you can't get caffeineaddiction's fix working #161 comment, another workaround was posted on stackoverflow by aviso. It was easy for me to get the stackoverflow solution working, but I suspect it will be a bit more of a pain in the long run than the
tsocksmethod here due to vscode/extension updates likely needing manual intervention if not disabled. I just couldn't gettsocksup and running, so it was nice to have a second option.Chuxel commentedon Aug 30, 2019
roblourens Wouldn't the setting added for #15 resolve this as well?
roblourens commentedon Aug 30, 2019
Yes, I think it's a duplicate.
Please try installing the nightly version of the ssh extension, then setting
"remote.SSH.allowLocalServerDownload": true. This should cause it to download the extension on your local machine then copy it over to the host via scp. Please file issues if you have any problems.nsgexo commentedon Sep 9, 2019
"remote.SSH.allowLocalServerDownload": true is working nicely !
Thanks a lot!!