microsoft / microsoft/vscode-remote-release

[Remote-SSH Bug]: Space in user folder breaks SSH_ASKPASS

Open
#9,730 0 comments 1 reaction 1 assignee View on GitHub

@roblourens is already working on this.

Since Apr 1, 2024.

bug ssh
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Is there an existing issue for this bug?
  • I have searched the existing issues
Required Troubleshooting Steps
  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
Connect Locally

It doesn’t connect successfully (different error message)

->

The error only appears when remote.SSH.useLocalServer is true.
If I copy the SSH connection command to a terminal, I get a different error

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

If I quote the ssh path to "C:\Program Files\Git\usr\bin\ssh.exe", the command connects successfully and asks me for the passphrase on the terminal.

Expected Behavior

Connect to the SSH remote.

Steps To Reproduce
  1. On a Windows 10 PC with a space in the user folder
  2. Configure an SSH remote with a key with a passphrase
  3. Set remote.SSH.useLocalServer to true
  4. Try to connect to the remote in vscode
Remote-SSH Log
Remote-SSH Log

[19:41:46.193] Log Level: 1
[19:41:46.196] SSH Resolver called for "ssh-remote+rpi", attempt 1
[19:41:46.197] "remote.SSH.useLocalServer": true
[19:41:46.197] "remote.SSH.useExecServer": false
[19:41:46.197] "remote.SSH.path": undefined
[19:41:46.197] "remote.SSH.configFile": C:\Users\.ssh\ssh_config_vscode_nospaceinpath
[19:41:46.198] "remote.SSH.useFlock": true
[19:41:46.198] "remote.SSH.lockfilesInTmp": false
[19:41:46.198] "remote.SSH.localServerDownload": auto
[19:41:46.198] "remote.SSH.remoteServerListenOnSocket": false
[19:41:46.198] "remote.SSH.showLoginTerminal": true
[19:41:46.198] "remote.SSH.defaultExtensions": []
[19:41:46.199] "remote.SSH.loglevel": 1
[19:41:46.199] "remote.SSH.enableDynamicForwarding": true
[19:41:46.199] "remote.SSH.enableRemoteCommand": true
[19:41:46.199] "remote.SSH.serverPickPortsFromRange": {}
[19:41:46.200] "remote.SSH.serverInstallPath": {}
[19:41:46.206] VS Code version: 1.87.2
[19:41:46.206] Remote-SSH version: remote-ssh@0.109.0
[19:41:46.207] win32 x64
[19:41:46.209] SSH Resolver called for host: rpi
[19:41:46.209] Setting up SSH remote "rpi"
[19:41:46.213] Acquiring local install lock: C:\Users\ALEXAN~1\AppData\Local\Temp\vscode-remote-ssh-51d8c522-install.lock
[19:41:46.214] Looking for existing server data file at c:\Users\Alexander Schlüter\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-51d8c522-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-tr\data.json
[19:41:46.215] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server
[19:41:46.219] Install and start server if needed
[19:41:46.223] Checking ssh with "C:\Program Files\OpenSSH\ssh.exe -V"
[19:41:46.281] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[19:41:46.287] Preferring non-windows OpenSSH, skipping

[19:41:46.485] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[19:41:46.524] > OpenSSH_for_Windows_8.1p1, 
[19:41:46.524] > LibreSSL 3.0.2

[19:41:46.526] Preferring non-windows OpenSSH, skipping
[19:41:46.526] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[19:41:46.572] > OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023

[19:41:46.576] Using SSH config file "C:\Users\.ssh\ssh_config_vscode_nospaceinpath"
[19:41:46.576] askpass server listening on \\.\pipe\vscode-ssh-askpass-1ea7fda758420e5563caedb0c8df3e963ddadc7f-sock
[19:41:46.577] Spawning local server with {"serverId":1,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-439941bf380f374fb9f9811ccdcce8c87a2fee26-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","59870","-F","C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath","rpi","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\Alexander Schlüter\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-51d8c522-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-tr\\data.json"}
[19:41:46.577] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\Alexander Schlüter\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.109.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\Alexander Schlüter\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\Alexander Schlüter\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.109.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-1ea7fda758420e5563caedb0c8df3e963ddadc7f-sock"}
[19:41:46.589] Spawned 7056
[19:41:46.779] > local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59870 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bash
[19:41:46.784] > local-server-1> Spawned ssh, pid=17284
[19:41:46.844] stderr> OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023
[19:41:46.845] stderr> debug1: Reading configuration data C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath
[19:41:46.845] stderr> debug1: C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath line 3: Applying options for rpi
[19:41:46.862] stderr> debug1: Connecting to 192.168.0.200 [192.168.0.200] port 50022.
[19:41:46.869] stderr> debug1: Connection established.
[19:41:46.870] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa type 0
[19:41:46.871] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa-cert type -1
[19:41:46.873] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa type 2
[19:41:46.874] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa-cert type -1
[19:41:46.875] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk type -1
[19:41:46.876] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk-cert type -1
[19:41:46.876] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519 type -1
[19:41:46.878] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519-cert type -1
[19:41:46.879] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk type -1
[19:41:46.880] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk-cert type -1
[19:41:46.881] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss type -1
[19:41:46.881] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss-cert type -1
[19:41:46.882] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa type -1
[19:41:46.883] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa-cert type -1
[19:41:46.883] stderr> debug1: Local version string SSH-2.0-OpenSSH_9.3
[19:41:46.942] stderr> debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u2
[19:41:46.942] stderr> debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u2 pat OpenSSH* compat 0x04000000
[19:41:46.942] stderr> debug1: Authenticating to 192.168.0.200:50022 as 'pi'
[19:41:46.943] stderr> debug1: load_hostkeys: fopen /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts2: No such file or directory
[19:41:46.943] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[19:41:46.943] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[19:41:46.943] stderr> debug1: SSH2_MSG_KEXINIT sent
[19:41:46.946] stderr> debug1: SSH2_MSG_KEXINIT received
[19:41:46.946] stderr> debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
[19:41:46.946] stderr> debug1: kex: host key algorithm: ecdsa-sha2-nistp256
[19:41:46.946] stderr> debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
[19:41:46.946] stderr> debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
[19:41:47.032] stderr> debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
[19:41:47.065] stderr> debug1: SSH2_MSG_KEX_ECDH_REPLY received
[19:41:47.065] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8
[19:41:47.067] stderr> debug1: load_hostkeys: fopen /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts2: No such file or directory
[19:41:47.069] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[19:41:47.069] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[19:41:47.069] stderr> debug1: Host '[192.168.0.200]:50022' is known and matches the ECDSA host key.
[19:41:47.069] stderr> debug1: Found key in /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts:16
[19:41:47.109] stderr> debug1: rekey out after 134217728 blocks
[19:41:47.109] stderr> debug1: SSH2_MSG_NEWKEYS sent
[19:41:47.109] stderr> debug1: expecting SSH2_MSG_NEWKEYS
[19:41:47.109] stderr> debug1: SSH2_MSG_NEWKEYS received
[19:41:47.109] stderr> debug1: rekey in after 134217728 blocks
[19:41:47.109] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa ECDSA SHA256:jJiHXxXxOKdCBLI9Yv+T0ZRxC3LRRV2H96GAvercZLs
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk 
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519 
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk 
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss 
[19:41:47.110] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa 
[19:41:47.110] stderr> debug1: SSH2_MSG_EXT_INFO received
[19:41:47.111] stderr> debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com,ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
[19:41:47.111] stderr> debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
[19:41:47.160] stderr> debug1: SSH2_MSG_SERVICE_ACCEPT received
[19:41:47.169] stderr> debug1: Authentications that can continue: publickey,password
[19:41:47.169] stderr> debug1: Next authentication method: publickey
[19:41:47.170] stderr> debug1: Offering public key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:47.173] stderr> debug1: Server accepts key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:47.173] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:47.204] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:47.204] stderr> operable program or batch file.
[19:41:47.212] stderr> debug1: Offering public key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa ECDSA SHA256:jJiHXxXxOKdCBLI9Yv+T0ZRxC3LRRV2H96GAvercZLs
[19:41:47.246] stderr> debug1: Authentications that can continue: publickey,password
[19:41:47.247] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk
[19:41:47.248] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519
[19:41:47.248] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk
[19:41:47.249] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss
[19:41:47.249] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa
[19:41:47.250] stderr> debug1: Next authentication method: password
[19:41:47.250] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:47.296] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:47.296] stderr> operable program or batch file.
[19:41:47.314] stderr> debug1: Authentications that can continue: publickey,password
[19:41:47.314] stderr> Permission denied, please try again.
[19:41:47.315] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:47.349] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:47.349] stderr> operable program or batch file.
[19:41:47.366] stderr> debug1: Authentications that can continue: publickey,password
[19:41:47.366] stderr> Permission denied, please try again.
[19:41:47.367] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:47.404] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:47.404] stderr> operable program or batch file.
[19:41:47.425] stderr> debug1: Authentications that can continue: publickey,password
[19:41:47.425] stderr> debug1: No more authentication methods to try.
[19:41:47.425] stderr> pi@192.168.0.200: Permission denied (publickey,password).
[19:41:47.427] > local-server-1> ssh child died, shutting down
[19:41:47.438] Local server exit: 0
[19:41:47.439] Received install output: local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59870 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bash
local-server-1> Spawned ssh, pid=17284
OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
pi@192.168.0.200: Permission denied (publickey,password).
local-server-1> ssh child died, shutting down

[19:41:47.439] Stopped parsing output early. Remaining text: local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59870 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bashlocal-server-1> Spawned ssh, pid=17284OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.Permission denied, please try again.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.Permission denied, please try again.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.pi@192.168.0.200: Permission denied (publickey,password).local-server-1> ssh child died, shutting down
[19:41:47.441] Resolver error: Error: Permission denied (publickey,password).
	at g.Create (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:499734)
	at c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:496342
	at t.handleInstallOutput (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:496978)
	at e (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:558185)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:580094
	at async t.withShowDetailsEvent (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:583753)
	at async c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:554890
	at async T (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:552941)
	at async t.resolveWithLocalServer (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:554430)
	at async k (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:577311)
	at async t.resolve (c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:581124)
	at async c:\Users\Alexander Schlüter\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:847283
[19:41:47.444] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"1","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"PermissionDenied","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":1244,"timing.preSshTime":381}}
[19:41:47.444] ------




[19:41:48.456] Opening exec server for ssh-remote+rpi
[19:41:48.479] Initizing new exec server for ssh-remote+rpi
[19:41:48.530] Acquiring local install lock: C:\Users\ALEXAN~1\AppData\Local\Temp\vscode-remote-ssh-51d8c522-install.lock
[19:41:48.539] Looking for existing server data file at c:\Users\Alexander Schlüter\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-51d8c522-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es\data.json
[19:41:48.540] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server
[19:41:48.543] Install and start server if needed
[19:41:48.548] Using SSH config file "C:\Users\.ssh\ssh_config_vscode_nospaceinpath"
[19:41:48.548] askpass server listening on \\.\pipe\vscode-ssh-askpass-05baa04df969ee8742d13bf3ad768b9aa118fb0f-sock
[19:41:48.549] Spawning local server with {"serverId":2,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-7a42fc2de5595267b98d098e880b74bab527a6a7-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","59896","-F","C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath","rpi","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\Alexander Schlüter\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-51d8c522-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es\\data.json"}
[19:41:48.549] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\Alexander Schlüter\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.109.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\Alexander Schlüter\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\Alexander Schlüter\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.109.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-05baa04df969ee8742d13bf3ad768b9aa118fb0f-sock"}
[19:41:48.561] Spawned 2548
[19:41:49.011] > local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59896 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bash
[19:41:49.016] > local-server-2> Spawned ssh, pid=19488
[19:41:49.100] stderr> OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023
[19:41:49.100] stderr> debug1: Reading configuration data C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath
[19:41:49.101] stderr> debug1: C:\\Users\\.ssh\\ssh_config_vscode_nospaceinpath line 3: Applying options for rpi
[19:41:49.121] stderr> debug1: Connecting to 192.168.0.200 [192.168.0.200] port 50022.
[19:41:49.127] stderr> debug1: Connection established.
[19:41:49.127] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa type 0
[19:41:49.128] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa-cert type -1
[19:41:49.131] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa type 2
[19:41:49.132] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa-cert type -1
[19:41:49.132] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk type -1
[19:41:49.133] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk-cert type -1
[19:41:49.134] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519 type -1
[19:41:49.136] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519-cert type -1
[19:41:49.137] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk type -1
[19:41:49.137] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk-cert type -1
[19:41:49.137] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss type -1
[19:41:49.137] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss-cert type -1
[19:41:49.138] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa type -1
[19:41:49.138] stderr> debug1: identity file /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa-cert type -1
[19:41:49.139] stderr> debug1: Local version string SSH-2.0-OpenSSH_9.3
[19:41:49.163] stderr> debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u2
[19:41:49.163] stderr> debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u2 pat OpenSSH* compat 0x04000000
[19:41:49.164] stderr> debug1: Authenticating to 192.168.0.200:50022 as 'pi'
[19:41:49.165] stderr> debug1: load_hostkeys: fopen /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts2: No such file or directory
[19:41:49.165] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[19:41:49.165] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[19:41:49.165] stderr> debug1: SSH2_MSG_KEXINIT sent
[19:41:49.169] stderr> debug1: SSH2_MSG_KEXINIT received
[19:41:49.169] stderr> debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
[19:41:49.169] stderr> debug1: kex: host key algorithm: ecdsa-sha2-nistp256
[19:41:49.171] stderr> debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
[19:41:49.172] stderr> debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
[19:41:49.257] stderr> debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
[19:41:49.287] stderr> debug1: SSH2_MSG_KEX_ECDH_REPLY received
[19:41:49.287] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8
[19:41:49.288] stderr> debug1: load_hostkeys: fopen /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts2: No such file or directory
[19:41:49.289] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[19:41:49.290] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[19:41:49.290] stderr> debug1: Host '[192.168.0.200]:50022' is known and matches the ECDSA host key.
[19:41:49.290] stderr> debug1: Found key in /c/Users/Alexander Schl\303\274ter/.ssh/known_hosts:16
[19:41:49.319] stderr> debug1: rekey out after 134217728 blocks
[19:41:49.319] stderr> debug1: SSH2_MSG_NEWKEYS sent
[19:41:49.319] stderr> debug1: expecting SSH2_MSG_NEWKEYS
[19:41:49.319] stderr> debug1: SSH2_MSG_NEWKEYS received
[19:41:49.319] stderr> debug1: rekey in after 134217728 blocks
[19:41:49.322] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:49.322] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa ECDSA SHA256:jJiHXxXxOKdCBLI9Yv+T0ZRxC3LRRV2H96GAvercZLs
[19:41:49.322] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk 
[19:41:49.322] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519 
[19:41:49.322] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk 
[19:41:49.323] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss 
[19:41:49.323] stderr> debug1: Will attempt key: /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa 
[19:41:49.323] stderr> debug1: SSH2_MSG_EXT_INFO received
[19:41:49.323] stderr> debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com,ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
[19:41:49.323] stderr> debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
[19:41:49.372] stderr> debug1: SSH2_MSG_SERVICE_ACCEPT received
[19:41:49.381] stderr> debug1: Authentications that can continue: publickey,password
[19:41:49.381] stderr> debug1: Next authentication method: publickey
[19:41:49.382] stderr> debug1: Offering public key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:49.384] stderr> debug1: Server accepts key: /c/Users/Alexander Schl\303\274ter/.ssh/id_rsa RSA SHA256:CW6Tdlx0BR0LLSWEnnHIBNQbH7gpHlmd91mH47RpgzY
[19:41:49.386] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:49.417] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:49.417] stderr> operable program or batch file.
[19:41:49.432] stderr> debug1: Offering public key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa ECDSA SHA256:jJiHXxXxOKdCBLI9Yv+T0ZRxC3LRRV2H96GAvercZLs
[19:41:49.465] stderr> debug1: Authentications that can continue: publickey,password
[19:41:49.465] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ecdsa_sk
[19:41:49.466] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519
[19:41:49.466] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_ed25519_sk
[19:41:49.466] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_xmss
[19:41:49.468] stderr> debug1: Trying private key: /c/Users/Alexander Schl\303\274ter/.ssh/id_dsa
[19:41:49.468] stderr> debug1: Next authentication method: password
[19:41:49.468] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:49.507] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:49.507] stderr> operable program or batch file.
[19:41:49.522] stderr> debug1: Authentications that can continue: publickey,password
[19:41:49.523] stderr> Permission denied, please try again.
[19:41:49.523] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:49.552] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:49.552] stderr> operable program or batch file.
[19:41:49.570] stderr> debug1: Authentications that can continue: publickey,password
[19:41:49.570] stderr> Permission denied, please try again.
[19:41:49.570] stderr> debug1: read_passphrase: can't open /dev/tty: No such device or address
[19:41:49.605] stderr> 'C:\Users\Alexander' is not recognized as an internal or external command,
[19:41:49.605] stderr> operable program or batch file.
[19:41:49.621] stderr> debug1: Authentications that can continue: publickey,password
[19:41:49.621] stderr> debug1: No more authentication methods to try.
[19:41:49.621] stderr> pi@192.168.0.200: Permission denied (publickey,password).
[19:41:49.624] > local-server-2> ssh child died, shutting down
[19:41:49.639] Local server exit: 0
[19:41:49.639] Received install output: local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59896 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bash
local-server-2> Spawned ssh, pid=19488
OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
Permission denied, please try again.
'C:\Users\Alexander' is not recognized as an internal or external command,
operable program or batch file.
pi@192.168.0.200: Permission denied (publickey,password).
local-server-2> ssh child died, shutting down

[19:41:49.639] Stopped parsing output early. Remaining text: local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 59896 -F C:\Users\.ssh\ssh_config_vscode_nospaceinpath rpi bashlocal-server-2> Spawned ssh, pid=19488OpenSSH_9.3p1, OpenSSL 1.1.1u  30 May 2023debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iJ5YPcXP/D2Fsed5R6PxkVe6rGbx/D9MH4XDEb20xt8'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.Permission denied, please try again.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.Permission denied, please try again.'C:\Users\Alexander' is not recognized as an internal or external command,operable program or batch file.pi@192.168.0.200: Permission denied (publickey,password).local-server-2> ssh child died, shutting down
[19:41:49.641] Exec server for ssh-remote+rpi failed: Error: Permission denied (publickey,password).
[19:41:49.642] Error opening exec server for ssh-remote+rpi: Error: Permission denied (publickey,password).

Anything else?

I moved the ssh config to a path without spaces as well, but that didn't fix the error, so now I'm pretty sure it's due to the SSH_ASKPASS path containing a space.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.