Skip to content

[error]run vscode-server via local ssh socks5 proxy #8035

Open

Description

Hi, I have the need to run a no-internet server as my vscode-server (that is in the slurm system). I used ssh proxy for using https.

export https_proxy="socks5://127.0.0.1:7070"; 
export HTTPS_PROXY="socks5://127.0.0.1:7070"; 
export all_proxy="socks5://127.0.0.1:7070"; 

But I found this error

(base) ➜  bin vscode-server          
[2023-02-13 17:03:49] error failed to lookup tunnel: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/api/v1/tunnels/p25x84vd?includePorts=true&tokenScopes=host): error trying to connect: tcp connect error: Network unreachable (os error 101)

I can use this vscode-server cmd in a server which can access the internet.

(base) ➜  ~ vscode-server

Open this link in your browser https://insiders.vscode.dev/+ms-vscode.remote-server/......

Some useful informations

(base) ➜  bin proxy.on
(base) ➜  bin curl www.baidu.com
<html><script>window.location.href="https://its.pku.edu.cn/?cause=unauthN&gowhere="+encodeURIComponent(window.location.href)</script></html>%                                                                                   
(base) ➜  bin proxy.off
(base) ➜  bin curl www.baidu.com
curl: (7) Couldn't connect to server


(base) ➜  bin which proxy.on
proxy.on: aliased to export https_proxy="socks5://127.0.0.1:7070"; export HTTPS_PROXY="socks5://127.0.0.1:7070"; export all_proxy="socks5://127.0.0.1:7070"; git config --global http.proxy "socks5://127.0.0.1:7070"; git config --global https.proxy "socks5://127.0.0.1:7070"


(base) ➜  bin which proxy.off
proxy.off: aliased to export https_proxy=""; export HTTPS_PROXY=""; export all_proxy="";git config --global --unset http.proxy; git config --global --unset https.proxy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitysshIssue in vscode-remote SSHtunnels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions