You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried both values of the remote.SSH.useLocalServer setting
Connect Locally
It connects successfully
->
No response
Expected Behavior
I would like to connect to a Windows 11 computer running Cygwin SSH. The Cygwin SSH is configured for bash shell which is what I want. I am not sure if the bash shell is relevant for this problem or not.
Steps To Reproduce
I use VSCode Version: 1.90.2 with latest remote SSH extension as of today (v0.112.0). My Windows 11 computer is behind an SSH proxy host. From a standard terminal I can connect via the proxy host directly to the Windows 11 computer Cygwin SSH server. When logging in, a bash shell is offered and I can work from this shell in my development environment.
With the VSCode extension, I do:
Select CTRL-P and Connect to host
Choose the remote Windows computer
The extension shows that I tries to connect, but hangs basically forever (more than 10min...)
Remote-SSH Log
Remote-SSH Log
[12:06:39.947] Log Level: 2
[12:06:39.949] SSH Resolver called for "ssh-remote+aidan07.marssoft.de", attempt 1
[12:06:39.950] "remote.SSH.useLocalServer": true
[12:06:39.950] "remote.SSH.useExecServer": true
[12:06:39.950] "remote.SSH.path": undefined
[12:06:39.951] "remote.SSH.configFile": undefined
[12:06:39.951] "remote.SSH.useFlock": true
[12:06:39.951] "remote.SSH.lockfilesInTmp": false
[12:06:39.951] "remote.SSH.localServerDownload": auto
[12:06:39.951] "remote.SSH.remoteServerListenOnSocket": false
[12:06:39.951] "remote.SSH.showLoginTerminal": false
[12:06:39.951] "remote.SSH.defaultExtensions": []
[12:06:39.951] "remote.SSH.loglevel": 2
[12:06:39.952] "remote.SSH.enableDynamicForwarding": true
[12:06:39.952] "remote.SSH.enableRemoteCommand": false
[12:06:39.952] "remote.SSH.serverPickPortsFromRange": {}
[12:06:39.952] "remote.SSH.serverInstallPath": {}
[12:06:39.959] VS Code version: 1.90.2
[12:06:39.959] Remote-SSH version: [email protected]
[12:06:39.959] linux x64
[12:06:39.963] SSH Resolver called for host: aidan07.marssoft.de
[12:06:39.963] Setting up SSH remote "aidan07.marssoft.de"
[12:06:39.966] Acquiring local install lock: /tmp/vscode-remote-ssh-13c39783-install.lock
[12:06:39.967] Looking for existing server data file at /home/memmenlauer/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-13c39783-5437499feb04f7a586f677b155b039bc2b3669eb-0.112.0-es/data.json
[12:06:39.967] Using commit id "5437499feb04f7a586f677b155b039bc2b3669eb" and quality "stable" for server
[12:06:39.972] Install and start server if needed
[12:06:39.977] PATH: /home/memmenlauer/.local/bin:/home/memmenlauer/bin:/home/memmenlauer/.local/bin:/home/memmenlauer/bin:/data/memmenlauer/bda/scripts/bin:/home/memmenlauer/BDA/Src/../Software/bin:/home/memmenlauer/BDA/Src/BashBuildScripts/bin:/opt/emmenlau/bin:/opt/bda/bin:/opt/bin:/home/memmenlauer/.local/bin:/home/memmenlauer/bin:/home/emmenlau/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/memmenlauer/.dotnet/tools:/home/memmenlauer/.dotnet/tools
[12:06:39.977] Checking ssh with "ssh -V"
[12:06:39.988] > OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
[12:06:39.994] askpass server listening on /run/user/5800/vscode-ssh-askpass-4b75d995541958025f128411fd78d570d77c97b2.sock
[12:06:39.994] Spawning local server with {"serverId":1,"ipcHandlePath":"/run/user/5800/vscode-ssh-askpass-8e3d823abc88f305fb364e77f621ad2aa420fc08.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","40215","-o","ConnectTimeout=15","aidan07.marssoft.de"],"serverDataFolderName":".vscode-server","dataFilePath":"/home/memmenlauer/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-13c39783-5437499feb04f7a586f677b155b039bc2b3669eb-0.112.0-es/data.json"}
[12:06:39.994] Local server env: {"SSH_AUTH_SOCK":"/run/user/5800/keyring/ssh","SHELL":"/bin/bash","DISPLAY":":1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/5800/vscode-ssh-askpass-4b75d995541958025f128411fd78d570d77c97b2.sock"}
[12:06:39.999] Spawned 416659
[12:06:40.095] > local-server-1> Running ssh connection command: ssh -v -T -D 40215 -o ConnectTimeout=15 aidan07.marssoft.de
[12:06:40.099] > local-server-1> Spawned ssh, pid=416675
[12:06:40.104] stderr> OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
[12:06:40.109] stderr> OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
[12:06:40.214] stderr> debug1: Server host key: ssh-ed25519 SHA256:OJYadhVsTfUBZLUP1dhgeA+2FPplESLSUCL+5cN7rFE
[12:06:40.350] stderr> Authenticated to bool.biodataanalysis.de ([80.81.2.102]:22180) using "publickey".
[12:06:40.557] stderr> debug1: Server host key: ssh-ed25519 SHA256:fozmgMZ8kmV5mZuxtsxx9wLSLnueNTVP6Eb2D5Ie9/s
[12:06:40.722] stderr> Authenticated to aidan07 (via proxy) using "publickey".
[12:06:41.645] > ready: 4ef3d9c6a284
[12:06:41.698] > CYGWIN_NT-10.0-22000 3.4.9-1.x86_64 2023-09-06 11:19 UTC
[12:06:41.698] Platform: windows
[12:06:41.698] Remote command length: 6504/8192 characters
[12:06:41.817] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[12:06:41.958] > PS C:\cygwin64\home\memmenlauer>
[12:06:42.015] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CiR1dWlkPSI0ZWYzZDljNmEyODQiCiIke3V1aWR9OiBydW5uaW5nIgoiNGVmM2Q5YzZhMjg0OiBwYXVzZUxvZyIKJFByb2dyZXNzUHJlZmVyZW5jZT0nU2lsZW50bHlDb250aW51ZScKJHJfPSc1NDM3NDk5ZmViMDRmN2E1ODZmNjc3YjE1NWIwMzliYzJiMzY2OWViJwokcD0kZW52OlBST0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXEgJ0lBNjQnKSkgeyAneDY0JyB9IGVsc2UgeyAnaWEzMicgfQokc189KEpvaW4tUGF0aCAoUmVzb2x2ZS1QYXRoIH4pICcudnNjb2RlLXNlcnZlcicpCiRjbGlEYXRhRGlyPShKb2luLVBhdGggIiRzXyIgJ2NsaScpCiRlbnY6VlNDT0RFX0FHRU5UX0ZPTERFUj0kc18KJGxvZz1OZXctVGVtcG9yYXJ5RmlsZQokY189ImNvZGUiCiRkXz0iJGNfLmV4ZSIKJGVfPSIkY18tJHJfLmV4ZSIKJGZfPSIkc19cJGVfIgokdF89J3N0YWJsZScKJGtfPSRUcnVlCiRsXz0kRmFsc2UKJGdsb2JhbDp2XyA9ICRGYWxzZQokZ2xvYmFsOndfID0gJycKJGdsb2JhbDpuXyA9ICcnCiRnbG9iYWw6b18gPSAnJwokZ2xvYmFsOnBfID0gJycKJGdsb2JhbDpxXyA9ICcnCmZ1bmN0aW9uIGFrXyB7CiJsaXN0ZW5pbmdPbj09JHBvcnQ9PSIKIm9zUmVsZWFzZUlkPT13aW5kb3dzPT0iCiJvc1ZlcnNpb249PSRhaV89PSIKImFyY2g9PSRhcmNoPT0iCiJwbGF0Zm9ybT09d2luZG93cz09Igoid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0gV2luMzJfT3BlcmF0aW5nU3lzdGVtKS5WZXJzaW9uCn0gY2F0Y2ggewoiRmFpbGVkIHRvIGZpbmQgV2luZG93cyB2ZXJzaW9uIC0gJCgkXy5Ub1N0cmluZygpKSIKJGdsb2JhbDphaV8gPSAidW5rbm93biIKfQpwcmludFJlc3VsdAoiJHBpZCwgd2F0Y2hpbmcgJHNzaGRQSUQiCndoaWxlICgkVHJ1ZSkgewpiXwpzbGVlcCAzMAp9Cn0KIjRlZjNkOWM2YTI4NDogcmVzdW1lTG9nIgptYWluCg==')))); powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript"
[12:06:42.470] > 4ef3d9c6a284: running
> 4ef3d9c6a284: pauseLog
[12:06:42.592] > 4ef3d9c6a284: resumeLog
[12:06:43.411] stderr> #< CLIXML
[12:06:43.490] > no sshd parent proc
[12:06:43.490] stderr> <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">gps : Cannot find a process with the process identifier 3012._x000D__x000A_</S><S S="Error">At line:57 char:6_x000D__x000A_</S><S S="Error">+ if ((gps -Id $y_).Name -eq 'sshd') {_x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : ObjectNotFound: (3012:Int32) [Get-Process], ProcessCommandException_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : NoProcessFoundForGivenId,Microsoft.PowerShell.Commands.GetProcessCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
[12:06:43.536] > PS C:\cygwin64\home\memmenlauer>
Anything else?
When I set "remote.SSH.path": "C:\\cygwin64\\bin\\ssh.exe" then there is an error that the remote ssh would not be executable. So I removed that setting again.
When I set remote.SSH.useLocalServer to false then the error is slightly different, attached here:
Remote-SSH Log
[13:20:48.347] Log Level: 2
[13:20:48.350] SSH Resolver called for "ssh-remote+aidan07.marssoft.de", attempt 1
[13:20:48.351] "remote.SSH.useLocalServer": false
[13:20:48.351] "remote.SSH.useExecServer": true
[13:20:48.352] "remote.SSH.showLoginTerminal": false
[13:20:48.352] "remote.SSH.remotePlatform": {}
[13:20:48.352] "remote.SSH.path": undefined
[13:20:48.352] "remote.SSH.configFile": undefined
[13:20:48.352] "remote.SSH.useFlock": true
[13:20:48.352] "remote.SSH.lockfilesInTmp": false
[13:20:48.353] "remote.SSH.localServerDownload": auto
[13:20:48.353] "remote.SSH.remoteServerListenOnSocket": false
[13:20:48.353] "remote.SSH.showLoginTerminal": false
[13:20:48.353] "remote.SSH.defaultExtensions": []
[13:20:48.353] "remote.SSH.loglevel": 2
[13:20:48.353] "remote.SSH.enableDynamicForwarding": true
[13:20:48.353] "remote.SSH.enableRemoteCommand": false
[13:20:48.354] "remote.SSH.serverPickPortsFromRange": {}
[13:20:48.354] "remote.SSH.serverInstallPath": {}
[13:20:48.364] VS Code version: 1.90.2
[13:20:48.364] Remote-SSH version: [email protected]
[13:20:48.364] linux x64
[13:20:48.368] SSH Resolver called for host: aidan07.marssoft.de
[13:20:48.368] Setting up SSH remote "aidan07.marssoft.de"
[13:20:48.372] Using commit id "5437499feb04f7a586f677b155b039bc2b3669eb" and quality "stable" for server
[13:20:48.379] Install and start server if needed
[13:20:51.831] PATH: /home/memmenlauer/.local/bin:/home/memmenlauer/bin:/home/memmenlauer/.local/bin:/home/memmenlauer/bin:/data/memmenlauer/bda/scripts/bin:/home/memmenlauer/BDA/Src/../Software/bin:/home/memmenlauer/BDA/Src/BashBuildScripts/bin:/opt/emmenlau/bin:/opt/bda/bin:/opt/bin:/home/memmenlauer/.local/bin:/home/memmenlauer/bin:/home/emmenlau/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/memmenlauer/.dotnet/tools:/home/memmenlauer/.dotnet/tools
[13:20:51.831] Checking ssh with "ssh -V"
[13:20:51.839] > OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
[13:20:51.843] Remote command length: 4920/8192 characters
[13:20:51.843] Running script with connection command: ssh -T -D 35759 -o ConnectTimeout=15 'aidan07.marssoft.de' powershell
[13:20:53.734] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
>
[13:20:53.735] Got some output, clearing connection timeout
[13:20:53.888] > PS C:\cygwin64\home\memmenlauer>
[13:20:53.935] >
> PS C:\cygwin64\home\memmenlauer> $uuid="d6d9a3fe9bdb"
[13:20:53.966] > PS C:\cygwin64\home\memmenlauer> "${uuid}: running"
> d6d9a3fe9bdb: running
> PS C:\cygwin64\home\memmenlauer> "d6d9a3fe9bdb: pauseLog
[13:20:55.311] > gps : Cannot find a process with the process identifier 11144.
> At line:9 char:6
> + if ((gps -Id $y_).Name -eq 'sshd') {
> + ~~~~~~~~~~~
> + CategoryInfo : ObjectNotFound: (11144:Int32) [Get-Process], ProcessCommandException
> + FullyQualifiedErrorId : NoProcessFoundForGivenId,Microsoft.PowerShell.Commands.GetProcessCommand
>
[13:20:55.358] > no sshd parent proc
[13:20:55.617] "install" terminal command done
[13:20:55.618] Install terminal quit with output: no sshd parent proc
[13:20:55.626] Received install output: no sshd parent proc
[13:20:55.626] Failed to parse remote port from server output
[13:20:55.628] Resolver error: Error:
at g.Create (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:499918)
at t.handleInstallOutput (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:497240)
at t.tryInstall (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:621085)
at async /home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:580730
at async t.withShowDetailsEvent (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:584036)
at async k (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:577649)
at async t.resolve (/home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:581407)
at async /home/memmenlauer/.vscode/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:848023
[13:20:55.632] ------
[13:20:55.974] Opening exec server for ssh-remote+aidan07.marssoft.de
[13:20:55.982] Initizing new exec server for ssh-remote+aidan07.marssoft.de
[13:20:56.007] Using commit id "5437499feb04f7a586f677b155b039bc2b3669eb" and quality "stable" for server
[13:20:56.010] Install and start server if needed
[13:21:04.942] getPlatformForHost was canceled
[13:21:04.942] Exec server for ssh-remote+aidan07.marssoft.de failed: Error: Connecting was canceled
[13:21:04.942] Error opening exec server for ssh-remote+aidan07.marssoft.de: Error: Connecting was canceled
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
->
No response
Expected Behavior
I would like to connect to a Windows 11 computer running Cygwin SSH. The Cygwin SSH is configured for bash shell which is what I want. I am not sure if the bash shell is relevant for this problem or not.
Steps To Reproduce
I use VSCode Version: 1.90.2 with latest remote SSH extension as of today (v0.112.0). My Windows 11 computer is behind an SSH proxy host. From a standard terminal I can connect via the proxy host directly to the Windows 11 computer Cygwin SSH server. When logging in, a bash shell is offered and I can work from this shell in my development environment.
With the VSCode extension, I do:
CTRL-P
andConnect to host
Remote-SSH Log
Remote-SSH Log
Anything else?
When I set
"remote.SSH.path": "C:\\cygwin64\\bin\\ssh.exe"
then there is an error that the remote ssh would not be executable. So I removed that setting again.When I set
remote.SSH.useLocalServer
tofalse
then the error is slightly different, attached here:Remote-SSH Log
The text was updated successfully, but these errors were encountered: