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 port forwarding keeps failing #2141

Closed
thedacheng opened this issue Jan 9, 2020 · 1 comment
Closed

Remote SSH port forwarding keeps failing #2141

thedacheng opened this issue Jan 9, 2020 · 1 comment
Labels
info-needed Issue requires more information from poster

Comments

@thedacheng
Copy link

  • VSCode Version: 1.41.1
  • Local OS Version: Windows 10 Pro
  • Remote OS Version: Amazon Linux
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

1.Open VS Code
2.Remote-SSH: Connect to Host

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

[17:26:56.297] [email protected]
[17:26:56.297] win32 x64
[17:26:56.299] SSH Resolver called for "ssh-remote+oac-lxsftdev201", attempt 1
[17:26:56.299] SSH Resolver called for host: oac-lxsftdev201
[17:26:56.299] Setting up SSH remote "oac-lxsftdev201"
[17:26:56.404] Using commit id "26076a4de974ead31f97692a0d32f90d735645c0" and quality "stable" for server
[17:26:56.405] Testing ssh with ssh -V
[17:26:56.699] ssh exited with code: 0
[17:26:56.699] Got stderr from ssh: OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
[17:26:56.702] Running script with connection command: ssh -T -D 59300 oac-lxsftdev201 bash
[17:26:56.709] Install and start server if needed
[17:26:56.711] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[17:26:57.164] > 
[17:26:57.164] Got some output, clearing connection timeout
[17:26:58.398] > f62778e76c64: running
> 
[17:26:58.425] > Acquiring lock on /home/chengd/.vscode-server/bin/26076a4de974ead31f97692a0d32f9
> 0d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
> Found existing installation at /home/chengd/.vscode-server/bin/26076a4de974ead31
> f97692a0d32f90d735645c0...
> Found running server...
> 
> *
> * Reminder: You may only use this software with Visual Studio family products,
> 
[17:26:58.460] > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
> 
> Checking server status on port 43677 with wget
> f62778e76c64: start
> sshAuthSock====
> agentPort==43677==
> webViewServerPort====
> osReleaseId==amzn==
> arch==x86_64==
> webUiAccessToken====
> f62778e76c64: end
> 
[17:26:58.460] Received install output: 
sshAuthSock====
agentPort==43677==
webViewServerPort====
osReleaseId==amzn==
arch==x86_64==
webUiAccessToken====

[17:26:58.461] Remote server is listening on port 43677
[17:26:58.461] Parsed server configuration: {"agentPort":43677,"osReleaseId":"amzn","arch":"x86_64","webUiAccessToken":"","sshAuthSock":""}
[17:26:58.463] Starting forwarding server. localPort 59303 -> socksPort 59300 -> remotePort 43677
[17:26:58.465] Forwarding server listening on 59303
[17:26:58.466] Waiting for ssh tunnel to be ready
[17:26:58.470] Tunneled remote port 43677 to local port 59303
[17:26:58.470] Resolved "ssh-remote+oac-lxsftdev201" to "127.0.0.1:59303"
[17:26:58.472] ------




[17:26:58.472] [Forwarding server 59303] Got connection 0
[17:26:58.489] [Forwarding server 59303] Got connection 1
[17:26:58.492] [Forwarding server 59303] Got connection 2
[17:26:58.516] Failed to set up socket for dynamic port forward to remote port 43677: Socket closed. Is the remote port correct?
[17:26:58.548] Failed to set up socket for dynamic port forward to remote port 43677: Socket closed. Is the remote port correct?
[17:26:58.551] Failed to set up socket for dynamic port forward to remote port 43677: Socket closed. Is the remote port correct?
[17:26:58.558] > channel 3: open failed: administratively prohibited: open failed
> channel 4: open failed: administratively prohibited: open failed
> channel 5: open failed: administratively prohibited: open failed
[17:26:58.583] > 
> 
[17:29:58.463] > 
[17:32:58.459] > 
[17:35:58.460] > 
@roblourens
Copy link
Member

open failed: administratively prohibited: open failed

Is port forwarding allowed in your ssh server configuration? Is AllowTcpForwarding enabled?

@roblourens roblourens added the info-needed Issue requires more information from poster label Jan 9, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants