-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH Asking for password twice #9306
Comments
Please share the full Remote-SSH log. Also does this still happen if you set |
It is already set to false. Alright here is the full stack.
|
Sorry, I meant Can you try that and check the server log |
That seems to have gotten rid of the second prompt but yes looks like we have some errors.
|
Did it work or were there issues in the run where you got that error? Did the terminal work? If so it's ignorable, if not I will look into it |
Yeah it's working fine. What's the difference between the two? |
There's a little description in https://github.com/microsoft/vscode-remote-release/wiki/Remote-SSH-troubleshooting, it will be the default in the future, and does some things better. Re: "Could not find pty on pty host" there is some discussion going on in microsoft/vscode#201029 |
Works for me too. |
Does this issue occur when all extensions are disabled?: I can't do the command mentioned above because I am using an extension.
Version: 1.85.0 (user setup)
Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c
Date: 2023-12-06T20:48:09.019Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
Windows 10
Steps to Reproduce:
Use SSH to connect to another host
It connects successfully and I see the paths available there, and then it asks for password again.
Entering the password again or cancelling doesn't seem to make a difference.
I have the following extensions related to SSH
Remote - SSH
Remote - SSH: Editing Config
Remote Explorer
Here is the stack when I cancel:
[10:05:22.966] [Forwarding server port 46499] Got connection 1
[10:05:23.603] [Forwarding server port 46499] Got connection 2
[10:05:26.066] [Forwarding server port 46499] Got connection 3
[10:05:28.481] Opening exec server for ssh-remote+192.168.0.300
[10:05:28.501] Initizing new exec server for ssh-remote+192.168.0.300
[10:05:28.519] Using commit id "af28b32d7e553898b2a91af498b1fb666fdebe0c" and quality "stable" for server
[10:05:28.522] Install and start server if needed
[10:05:28.529] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 46511 "192.168.0.300" bash
[10:05:28.530] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[10:05:28.747] > �]0;C:\WINDOWS\System32\cmd.exe�
[10:05:28.747] Got some output, clearing connection timeout
[10:05:28.826] > [email protected]'s password:
[10:05:28.826] Showing password prompt
[10:05:45.998] Password dialog canceled
[10:05:45.999] "install" terminal command canceled
[10:05:45.999] Exec server for ssh-remote+192.168.0.300 failed: Error: Connecting was canceled
[10:05:46.000] Error opening exec server for ssh-remote+192.168.0.300: Error: Connecting was canceled
EDIT: I forgot one note, it wasn't doing this about a month or so ago.
The text was updated successfully, but these errors were encountered: