Skip to content
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

Remote-SSH - configure remote host via ssh instead of wget or direct web request #161

Closed
ytgui opened this issue May 6, 2019 · 25 comments
Closed
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH

Comments

@ytgui
Copy link

ytgui commented May 6, 2019

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:

  1. Local (Windows) configure ssh pubkey authentication.
  2. Connect to remote (Linux).
  3. Wget binary from https://vscode.microsoft.com
  4. Install extensions from https://vscode.microsoft.com
  5. Remote-SSH connection finish, ready to work.

And these may be better:

  1. same
  2. same
  3. Copy binary from local to remote by ssh connection.
  4. Install extensions by ssh connection, through local (Win) networks
  5. same

// end

Thanks

@RMacfarlane RMacfarlane transferred this issue from microsoft/vscode May 6, 2019
@ytgui ytgui 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 May 6, 2019
@egamma egamma added feature-request Request for new features or functionality ssh Issue in vscode-remote SSH labels May 6, 2019
@mklemarczyk
Copy link

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
Copy link

ekerazha commented 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
Copy link

Isn't this a duplicate of #15, which was opened 4 days before this?

@eddy-geek
Copy link

eddy-geek commented May 12, 2019 via email

@atomgalaxy
Copy link

I need this too.

@mbronni
Copy link

mbronni commented 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
Copy link

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
Copy link

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
Copy link

gturbo commented 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
Copy link

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
Copy link

avylove commented 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.

@BHANA1
Copy link

BHANA1 commented Jul 18, 2019

We are also in VERY high demand of being able to perform the necessary tooling install without internet access.

This is a common theme among larger companies especially in the aerospace industry, where vital lab assets are blocked for security reasons from receiving outside internet access.

Is there any possible work around to make this happen? Any future insight on when a local standalone installation package could become available for the server side remoting tools?

We love the VS Code ecosystem and would love to stay there, but are limited in our remote development capabilities until a stand alone installer is produced.

Thanks much.

@xgdgsc
Copy link

xgdgsc commented 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
Copy link

caffeineaddiction commented Jul 18, 2019

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

#!/bin/bash
export LD_LIBRARY_PATH=$HOME/opt/lib/tsocks/
export TSOCKS_CONF_FILE=$HOME/opt/tsocks/tsocks.conf
$HOME/bin/tsocks /usr/bin/wget $@

Remote: ~/opt/tsocks/tsocks.conf

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).

@educhana
Copy link

This is key. Many remote servers are firewalled.

@bro3cat
Copy link

bro3cat commented Jul 28, 2019

And another difference to pycharm is , remote-ssh in pycharm could remote into a docker container ,but vscode could not.

@Chuxel
Copy link
Member

Chuxel commented Jul 28, 2019

And another difference to pycharm is , remote-ssh in pycharm could remote into a docker container ,but vscode could not.

@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
Copy link

vinlyx commented Jul 31, 2019

Same for me, remote server does not have internet connection due to security reason.

@tbennett6421
Copy link

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
Copy link

This is a needed feature for enterprise development!

@caffeineaddiction
Copy link

subscribed, this would make our lives so much easier developing services that run on remote hosts. Until then, we can't use this application

see my previous comment for temp work around

#161 (comment)

@dlithio
Copy link

dlithio commented 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 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.

@Chuxel
Copy link
Member

Chuxel commented Aug 30, 2019

@roblourens Wouldn't the setting added for #15 resolve this as well?

@roblourens
Copy link
Member

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
Copy link

nsgexo commented Sep 9, 2019

"remote.SSH.allowLocalServerDownload": true is working nicely !
Thanks a lot!!

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests