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
Hello - I'm using the tailscale integration with VSCode for Windows 10. I have done the right click and set Change SSH Username to ubuntu. After doing this, clicking on the Terminal shortcut next to the machine name properly sends the ssh [email protected] command and connects without issue.
However, clicking the Attach VS Code shortcut will still send my current windows username in the ssh command. Log below:
Log
[10:22:43.561] "remote.SSH.useLocalServer": false
[10:22:43.561] "remote.SSH.useExecServer": false
[10:22:43.562] "remote.SSH.showLoginTerminal": false
[10:22:43.562] "remote.SSH.remotePlatform": {}
[10:22:43.562] "remote.SSH.path": undefined
[10:22:43.562] "remote.SSH.configFile": undefined
[10:22:43.563] "remote.SSH.useFlock": false
[10:22:43.563] "remote.SSH.lockfilesInTmp": false
[10:22:43.563] "remote.SSH.localServerDownload": auto
[10:22:43.563] "remote.SSH.remoteServerListenOnSocket": false
[10:22:43.563] "remote.SSH.showLoginTerminal": false
[10:22:43.564] "remote.SSH.defaultExtensions": []
[10:22:43.564] "remote.SSH.loglevel": 2
[10:22:43.564] "remote.SSH.enableDynamicForwarding": true
[10:22:43.565] "remote.SSH.enableRemoteCommand": false
[10:22:43.565] "remote.SSH.serverPickPortsFromRange": {}
[10:22:43.565] "remote.SSH.serverInstallPath": {}
[10:22:43.571] VS Code version: 1.82.2
[10:22:43.571] Remote-SSH version: [email protected]
[10:22:43.571] win32 x64
[10:22:43.578] SSH Resolver called for host: my-machine.mytailnet.ts.net
[10:22:43.578] Setting up SSH remote "my-machine.mytailnet.ts.net"
[10:22:43.583] Using commit id "abd2f3db4bdb28f9e95536dfa84d8479f1eb312d" and quality "stable" for server
[10:22:43.586] Install and start server if needed
[10:22:47.414] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[10:22:47.418] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[10:22:47.418] Checking ssh with "C:\Windows\ssh.exe -V"
[10:22:47.419] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[10:22:47.419] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[10:22:47.420] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[10:22:47.420] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:22:47.421] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:22:47.421] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[10:22:47.451] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[10:22:47.454] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 58493 "my-machine.mytailnet.ts.net" bash
[10:22:47.456] Terminal shell path: C:\Windows\System32\cmd.exe
[10:22:47.668] > �]0;C:\Windows\System32\cmd.exe�
[10:22:47.669] Got some output, clearing connection timeout
[10:22:47.925] > [email protected]: Permission denied (tailscale).
[10:22:47.940] > The process tried to write to a nonexistent pipe.
[10:22:49.189] "install" terminal command done
[10:22:49.190] Install terminal quit with output: �]0;C:\Windows\System32\cmd.exe�[email protected]: Permission denied (tailscale).
[10:22:49.190] Received install output: �]0;C:\Windows\System32\cmd.exe�[email protected]: Permission denied (tailscale).
[10:22:49.193] Resolver error: Error: Permission denied (tailscale).
The text was updated successfully, but these errors were encountered:
I am trying to think of a better solution here. From what I have been able to tell, VS Code does not support providing the username with this API. Instead, they require setting the username in the SSH config. We have documented this here.
We could provide an error message if the username has been set in the extension, but it has not been in the SSH config - but that would require us reading the SSH config file, which I am not sure is something we want to do.
That is an unfortunate limitation.
Sorry I missed that in the documentation. Doing that fixed the issue. Just a bit tedious to manage when using multiple computers or adding removing machines often.
Is it possible to just prompt for a username on first connect?
Just stumbled across the same problem.. 🫠 @tylersmalley did you get any response from the VSCode team? This is an actual use case.. to have an on demand vscode connection without saving in ssh config..
Hello - I'm using the tailscale integration with VSCode for Windows 10. I have done the right click and set
Change SSH Username
to ubuntu. After doing this, clicking on theTerminal
shortcut next to the machine name properly sends thessh [email protected]
command and connects without issue.However, clicking the
Attach VS Code
shortcut will still send my current windows username in the ssh command. Log below:Log
The text was updated successfully, but these errors were encountered: