-
Notifications
You must be signed in to change notification settings - Fork 310
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
Unable to connect to a remote Rocky-Linux-9.5 #10630
Comments
Would you please follow the steps in the issue template? Specifically, please include your entire log and also share the behavior of SSH'ing to your host with the exact SSH string that is printed in that log. From your log snippet I see |
Hi, thanks for the quick response. Below you'll find three log files:
openssh_cli_output.txt The issue only appears when working from home. When connected to the office network, I do not face this problem. |
I have discovered that a working openssh command when connecting from my home is: PS C:\Users\bdosenov> ssh -v -D 63831 bdosenov@blndc01-godbox-boot-shared This means that I have to loose both "-T" and "sh" from the remote-ssh's command. I have managed to remove the -T option by manipulating remote-ssh Settings, but I am not able to get rid of the "sh". |
Type: Bug
I had a working setup for weeks, being able to connect to a remote server using pwd-authentication. Yesterday, all of a sudden, my SSH connection to the server stopped working with the following output:
[15:53:11.995] Using SSH config file "C:\Users\bdosenov.ssh\config"
[15:53:11.996] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 58254 -F "C:\Users\bdosenov.ssh\config" "blndc01-godbox-boot-shared" sh
[15:53:11.997] Generated SSH command: 'type "C:\Users\bdosenov\AppData\Local\Temp\vscode-linux-multi-line-command-blndc01-godbox-boot-shared-104281145.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 58254 -F "C:\Users\bdosenov.ssh\config" "blndc01-godbox-boot-shared" sh'
[15:53:11.998] Using connect timeout of 17 seconds
[15:53:11.999] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:53:13.526] "install" terminal received data: "bdosenov@blndc01-godbox-boot-shared's password:"
[15:53:13.527] Got some output, clearing connection timeout
[15:53:13.528] Showing password prompt
[15:53:21.101] Got password response
[15:53:21.101] "install" wrote data to terminal: "********************"
[15:53:21.149] "install" terminal received data: ""
[15:53:40.682] "install" terminal received data: "client_loop: send disconnect: Connection reset
The process tried to write to a nonexistent pipe."
[15:53:42.427] "install" terminal command done
[15:53:42.428] Install terminal quit with output: client_loop: send disconnect: Connection reset
[15:53:42.428] Received install output: client_loop: send disconnect: Connection reset
[15:53:42.428] Stopped parsing output early. Remaining text: client_loop: send disconnect: Connection reset
[15:53:42.429] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped.
[15:53:42.429] Failed to parse remote port from server output
[15:53:42.431] Resolver error: Error:
at v.Create (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:696499)
at t.handleInstallOutput (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:694580)
at t.tryInstall (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:812473)
at async c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:771431
at async t.withShowDetailsEvent (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:774668)
at async x (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:768087)
at async t.resolve (c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:772083)
at async c:\Users\bdosenov.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:1055245
[15:53:42.435] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"UnparsableOutput","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":30518,"timing.preSshTime":87,"timing.scriptTime":30430}}
[15:53:42.437] ------
[15:53:42.438] No hints found in the recent session.
ssh connection works fine by using windows cmd-shell with the same connection values as entered in vscode. Both the shell and vscode use the same ssh client: OpenSSH\ssh.exe.
In the meantime I have removed all the vscode files/folders on the remote server under my home dir, restarted sshd as well as the machine itself. I have uninstalled and installed the Remote-SSH extension multiple times, uninstalled and installed the vscode itself multiple times and I cannot seem to figure out what the issue is.
Extension version: 0.116.1
VS Code version: Code 1.96.3 (91fbdddc47bc9c09064bf7acf133d22631cbf083, 2025-01-09T18:14:09.060Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: