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

can't connect remote host via ssh #4916

Closed
forget2save opened this issue Apr 21, 2021 · 3 comments
Closed

can't connect remote host via ssh #4916

forget2save opened this issue Apr 21, 2021 · 3 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@forget2save
Copy link

  • VSCode Version: 1.55.2
  • Local OS Version: windows 10
  • Remote OS Version: ubuntu 18
  • Remote Extension/Connection Type: SSH
  • Logs:
    Warning: remote port forwarding failed for listen port 233
    6d0002c3c41b: running
    Acquiring lock on myhome/.vscode-server/bin/3c4e3df9e89829dce27b7b5c24508306b151f30d/vscode-remote-lock.zhu.3c4e3df9e89829dce27b7b5c24508306b151f30d
    Found existing installation at myhome/.vscode-server/bin/3c4e3df9e89829dce27b7b5c24508306b151f30d...
    Checking myhome/.vscode-server/.3c4e3df9e89829dce27b7b5c24508306b151f30d.log and myhome/.vscode-server/.3c4e3df9e89829dce27b7b5c24508306b151f30d.pid for a running server
    Looking for server with pid: 4175
    Found running server...

Checking server status on port 44915 with wget
6d0002c3c41b: start
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==44915==
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==01af981d-5700-4d66-9221-a0f4b6a79fd1==
6d0002c3c41b: end

Steps to Reproduce:

  1. set port forwarding on the router of my remote host
    router remote
    xxx.xxx.xxx.xxx:233------>xxx.xxx.xxx.xxx:233
  2. connect to the port via vscode remote-ssh
    command: ssh username@routerip -p 233
  3. stucking.......

It seems remote-ssh requires another random port to get the file tree on the remote host.
ssh service on the remote host is working when I use the powershell to connect

Does this issue occur when you try this locally?: Yes/No
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Apr 21, 2021
@roblourens
Copy link
Member

We have to forward a port, and this is random. Your machine might have multiple active connections, would being able to specify a fixed range help you?

@roblourens roblourens added the info-needed Issue requires more information from poster label Apr 21, 2021
@forget2save
Copy link
Author

We have to forward a port, and this is random. Your machine might have multiple active connections, would being able to specify a fixed range help you?

Yes, I think specifying a fixed range of ports might help. Please do tell me how to configure it. Thanks.

@roblourens
Copy link
Member

Working on it here #1386

@roblourens roblourens added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Apr 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants