[17:45:40.011] Log Level: 2
[17:45:40.019] SSH Resolver called for "ssh-remote+REMOTENAME", attempt 1
[17:45:40.019] "remote.SSH.useLocalServer": false
[17:45:40.019] "remote.SSH.useExecServer": false
[17:45:40.020] "remote.SSH.showLoginTerminal": true
[17:45:40.020] "remote.SSH.remotePlatform": {"REMOTE1":"windows","REMOTE2":"linux","REMOTENAME":"windows"}
[17:45:40.021] "remote.SSH.path": C:\WINDOWS\System32\OpenSSH\ssh.exe
[17:45:40.021] "remote.SSH.configFile": C:\Users\local_usr_NAME\.ssh\config
[17:45:40.021] "remote.SSH.useFlock": true
[17:45:40.021] "remote.SSH.lockfilesInTmp": false
[17:45:40.022] "remote.SSH.localServerDownload": off
[17:45:40.022] "remote.SSH.remoteServerListenOnSocket": false
[17:45:40.022] "remote.SSH.showLoginTerminal": true
[17:45:40.022] "remote.SSH.defaultExtensions": []
[17:45:40.022] "remote.SSH.loglevel": 2
[17:45:40.022] "remote.SSH.enableDynamicForwarding": true
[17:45:40.022] "remote.SSH.enableRemoteCommand": false
[17:45:40.022] "remote.SSH.serverPickPortsFromRange": {}
[17:45:40.022] "remote.SSH.serverInstallPath": {}
[17:45:40.025] VS Code version: 1.86.2
[17:45:40.025] Remote-SSH version: remote-ssh@0.108.0
[17:45:40.025] win32 x64
[17:45:40.026] SSH Resolver called for host: REMOTENAME
[17:45:40.026] Setting up SSH remote "REMOTENAME"
[17:45:40.028] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server
[17:45:40.030] Install and start server if needed
[17:45:40.032] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[17:45:40.050] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[17:45:40.053] Using SSH config file "C:\Users\local_usr_NAME\.ssh\config"
[17:45:40.053] Remote command length: 6227/8192 characters
[17:45:40.053] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 3116 -F "C:\Users\local_usr_NAME\.ssh\config" "REMOTENAME" powershell
[17:45:40.054] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[17:45:40.924] > Windows PowerShell
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ������װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindows�]0;C:\WINDOWS\System32\cmd.exe�
[17:45:40.924] Got some output, clearing connection timeout
[17:45:40.958] > Windows PowerShell
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ����
>
> ��װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindows
>
>
>
[17:45:41.018] > PS C:\Users\remote_usr_NAME>
[17:45:41.034] >
> PS C:\Users\remote_usr_NAME> $uuid="9f570384b640"
[17:45:41.042] >
> PS C:\Users\remote_usr_NAME> "${uuid}: running"
> 9f570384b640: running
> PS C:\Users\remote_usr_NAME> "9f570384b640: pauseLog
[17:45:41.456] > 9f570384b640: resumeLog
> PS C:\Users\remote_usr_NAME> main
[17:45:41.472] >
[17:45:41.692] > gcim : ����
> ����λ�� ��:4 �ַ�: 6
> + $u_=(gcim win32_process | ? processid -eq $t_).parentprocessid
> + ~~~~~~~~~~~~~~~~~~
> + CategoryInfo : MetadataError: (root\cimv2:win32_process:String) [Get-CimInstance], CimException
> + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
>
> no sshd parent proc
[17:45:41.703] >
[17:45:42.987] "install" terminal command done
[17:45:42.987] Install terminal quit with output: no sshd parent proc
[17:45:42.987] Received install output: no sshd parent proc
[17:45:42.987] Failed to parse remote port from server output
[17:45:42.989] Resolver error: Error:
at g.Create (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460245)
at t.handleInstallOutput (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:457567)
at t.tryInstall (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
at async c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
at async t.withShowDetailsEvent (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
at async k (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
at async t.resolve (c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
at async c:\Users\local_usr_NAME\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
[17:45:42.991] ------
[17:45:43.478] Opening exec server for ssh-remote+REMOTENAME
[17:45:43.478] Opening exec server for ssh-remote+REMOTENAME
[17:45:43.487] Initizing new exec server for ssh-remote+REMOTENAME
[17:45:43.508] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server
[17:45:43.511] Install and start server if needed
[17:45:43.515] Using SSH config file "C:\Users\local_usr_NAME\.ssh\config"
[17:45:43.515] Remote command length: 4902/8192 characters
[17:45:43.515] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 3126 -F "C:\Users\local_usr_NAME\.ssh\config" "REMOTENAME" powershell
[17:45:43.516] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[17:45:44.235] > Windows PowerShell
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ������װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindowsPS C:\Users\remote_usr_NAME>
> PS C:\Users\remote_usr_NAME> $uuid="62a3793e1b8a"�]0;C:\WINDOWS\System32\cmd.exe�
[17:45:44.235] Got some output, clearing connection timeout
[17:45:44.242] >
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ����
>
> ��װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindows
>
> PS C:\Users\remote_usr_NAME>
> PS C:\Users\remote_usr_NAME> $uuid="62a3793e1b8a"
>
[17:45:44.250] > PS C:\Users\remote_usr_NAME> "${uuid}: running"
> 62a3793e1b8a: running
> PS C:\Users\remote_usr_NAME> "62a3793e1b8a: pauseLog
[17:45:44.622] > 62a3793e1b8a: resumeLog
> PS C:\Users\remote_usr_NAME> main
[17:45:44.639] >
[17:45:44.731] > gcim : ����
> ����λ�� ��:4 �ַ�: 6
> + $y_=(gcim win32_process | ? processid -eq $x_).parentprocessid
> + ~~~~~~~~~~~~~~~~~~
> + CategoryInfo : MetadataError: (root\cimv2:win32_process:String) [Get-CimInstance], CimException
> + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
>
> no sshd parent proc
[17:45:44.761] >
[17:45:46.027] "install" terminal command done
[17:45:46.027] Install terminal quit with output: no sshd parent proc
[17:45:46.027] Received install output: no sshd parent proc
[17:45:46.028] Failed to parse remote port from server output
[17:45:46.028] Exec server for ssh-remote+REMOTENAME failed: Error
[17:45:46.028] Existing exec server for ssh-remote+REMOTENAME errored (Error)
[17:45:46.028] Initizing new exec server for ssh-remote+REMOTENAME
[17:45:46.028] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server
[17:45:46.029] Error opening exec server for ssh-remote+REMOTENAME: Error
[17:45:46.030] Install and start server if needed
[17:45:46.032] Using SSH config file "C:\Users\local_usr_NAME\.ssh\config"
[17:45:46.032] Remote command length: 4902/8192 characters
[17:45:46.032] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 3126 -F "C:\Users\local_usr_NAME\.ssh\config" "REMOTENAME" powershell
[17:45:46.033] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[17:45:47.000] > Windows PowerShell
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ������װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindowsPS C:\Users\remote_usr_NAME>
> PS C:\Users\remote_usr_NAME> $uuid="ad7afc85d439"�]0;C:\WINDOWS\System32\cmd.exe�
[17:45:47.000] Got some output, clearing connection timeout
[17:45:47.021] >
> ��Ȩ���У�C�� Microsoft Corporation����������Ȩ����
>
> ��װ���µ� PowerShell���˽��¹��ܺĽ���https://aka.ms/PSWindows
>
> PS C:\Users\remote_usr_NAME>
> PS C:\Users\remote_usr_NAME> $uuid="ad7afc85d439"
> PS C:\Users\remote_usr_NAME> "${uuid}: running"
> ad7afc85d439: running
> PS C:\Users\remote_usr_NAME> "ad7afc85d439: pauseLog"
> ad7afc85d439: pauseLog
[17:45:47.291] > ad7afc85d439: resumeLog
> PS C:\Users\remote_usr_NAME> main
[17:45:47.309] >
[17:45:47.417] > gcim : ����
> ����λ�� ��:4 �ַ�: 6
> + $y_=(gcim win32_process | ? processid -eq $x_).parentprocessid
> + ~~~~~~~~~~~~~~~~~~
> + CategoryInfo : MetadataError: (root\cimv2:win32_process:String) [Get-CimInstance], CimException
> + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
>
> no sshd parent proc
[17:45:47.432] >
[17:45:48.684] "install" terminal command done
[17:45:48.684] Install terminal quit with output: no sshd parent proc
[17:45:48.684] Received install output: no sshd parent proc
[17:45:48.684] Failed to parse remote port from server output
[17:45:48.684] Exec server for ssh-remote+REMOTENAME failed: Error
[17:45:48.684] Error opening exec server for ssh-remote+REMOTENAME: Error
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServersettingConnect Locally
It connects successfully
->
No response
Expected Behavior
VSCode Version: 1.86.2
Local OS: Windows 11 22H2
Remote OS: Windows 11 22H2
Issue Description: I'm experiencing an issue connecting to a remote server using VSCode's Remote SSH feature with an admin account. It's may not a local issue because I can connect to other remotes successfully.
�in the log is due to an encoding issue because the remote is not usingutf-8encoding. However, I believe this encoding discrepancy is not the root cause of my primary issue.Steps To Reproduce
1.Try to connect to remote Windows server with admin account
Remote-SSH Log
Remote-SSH Log
Anything else?
No response