Vscode-remote-release: SSH Local server startup fails (whitespace in name)

Created on 19 Mar 2020  路  3Comments  路  Source: microsoft/vscode-remote-release


  • VSCode Version: 1.43.1
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu 18.04
  • Remote Extension/Connection Type: SSH
  • Remote Extension Version: 0.50.0 (Does not occur on 0.49.0 or below)

Steps to Reproduce:

  1. Create a Windows account with a space in the name
  2. Try to connect to a remote over ssh on that user's account

The error seems to be occurring because it is trying to run a program located in the user directory, but it is not surrounded with quotes when running, which causes it to resolve to "C:\User\", which is not an executable. See the output below.


Does this issue occur when you try this locally?: Not Applicable
Does this issue occur when you try this locally and all extensions are disabled?: Not Applicable

-----------LOG-----------

[13:59:31.106] Log Level: 2
[13:59:31.109] [email protected]
[13:59:31.110] win32 x64
[13:59:31.112] SSH Resolver called for "ssh-remote+localhost", attempt 1
[13:59:31.112] SSH Resolver called for host: localhost
[13:59:31.112] Setting up SSH remote "localhost"
[13:59:31.116] Acquiring local install lock: C:\Users\MAXR**~1\AppData\Local\Temp\vscode-remote-ssh-localhost-install.lock
[13:59:31.128] Looking for existing server data file at c:\Users\Max R***\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-localhost-fe22a9645b44368865c0ba92e2fb881ff1afce94\data.json
[13:59:31.129] Using commit id "fe22a9645b44368865c0ba92e2fb881ff1afce94" and quality "stable" for server
[13:59:31.130] Install and start server if needed
[13:59:31.134] Checking ssh with "ssh -V"
[13:59:31.166] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[13:59:31.166] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[13:59:31.192] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[13:59:31.192] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[13:59:31.224] > OpenSSH_8.1p1, OpenSSL 1.1.1d  10 Sep 2019
[13:59:31.226] askpass server listening on \\.\pipe\vscode-ssh-askpass-812a134b32ff929e626b332c49b8aca4418d512e-sock
[13:59:31.226] Spawning local server with {"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-d5d155789d86606f857047ba91e8f4c499025a79-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","50837","localhost"],"dataFilePath":"c:\\Users\\Max R***\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-localhost-fe22a9645b44368865c0ba92e2fb881ff1afce94\\data.json"}
[13:59:31.227] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\Max R***\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.50.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\Max R***\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\Max R***\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.50.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-812a134b32ff929e626b332c49b8aca4418d512e-sock"}
[13:59:31.231] Spawned 4260
[13:59:31.309] > local-server> Spawned ssh: 16176
[13:59:31.334] stderr> OpenSSH_8.1p1, OpenSSL 1.1.1d  10 Sep 2019
[13:59:33.360] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Utri+ytBPVNrWl+CGva9lYgFlv0oX3oBvLkRwSoG0gs
[13:59:33.384] stderr> 'C:\Users\Max' is not recognized as an internal or external command,
[13:59:33.384] stderr> operable program or batch file.
[13:59:33.386] stderr> Permission denied, please try again.
[13:59:33.409] stderr> 'C:\Users\Max' is not recognized as an internal or external command,
[13:59:33.409] stderr> operable program or batch file.
[13:59:33.412] stderr> Permission denied, please try again.
[13:59:33.432] stderr> 'C:\Users\Max' is not recognized as an internal or external command,
[13:59:33.432] stderr> operable program or batch file.
[13:59:33.435] stderr> reptilian@localhost: Permission denied (publickey,password).
[13:59:33.437] > local-server> ssh child died, shutting down
[13:59:33.444] Local server exit: 0
[13:59:33.445] Received install output: OpenSSH_8.1p1, OpenSSL 1.1.1d  10 Sep 2019
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Utri+ytBPVNrWl+CGva9lYgFlv0oX3oBvLkRwSoG0gs
'C:\Users\Max' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Max' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Max' is not recognized as an internal or external command,
operable program or batch file.
reptilian@localhost: Permission denied (publickey,password).

[13:59:33.446] Resolver error: Permission denied (publickey,password).
[13:59:33.447] ------

--------END OF LOG---------
(Name removed for security)

*duplicate

Most helpful comment

As a workaround for now, you can use version 0.49.0; right click the extension and select "Install another version..." And choose 0.49.0

All 3 comments

I have this same issue, Cannot use SSH at all.

As a workaround for now, you can use version 0.49.0; right click the extension and select "Install another version..." And choose 0.49.0

Should be fixed in Remote-SSH Nightly for now, please try it out (uninstall Remote-SSH stable first). Also https://github.com/microsoft/vscode-remote-release/issues/2547

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kieferrm picture kieferrm  路  3Comments

kieferrm picture kieferrm  路  3Comments

JacksonKearl picture JacksonKearl  路  3Comments

grzegorz-silarski picture grzegorz-silarski  路  3Comments

sulume picture sulume  路  3Comments