-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error while authenticating using agent + private key or password prompt #121
Comments
@PanosBougas Can you post the log from This might be partially related to #120, also mixing agent and private key authentication, at least for the first config. The re-prompting for the second config (and it working when cancelled) is quite strange, though. I'll see if I can find the cause of this. |
This might take a while to properly fix. Either I have to do some hacky stuff to make the ssh2 library play nice, or I'll have to fork it and make it support what I need it to support. Neither will be easy or quick. |
@SchoofsKelvin Thanks for all of your hard work. I really appreciate it. 1st set of settings 2nd set of settings I noticed that with both settings I get prompted for password/passphrase at least a 2nd time. Also if I remove the agent from the 1st set of settings and leave the key and the passphrase the same thing happens. I hope this info helps. Again thanks for all the effort. 👍 |
Are you sure the key is in the agent? ( I've figured out why it prompts multiple times for the password/passphrase (924b0a4...35b0b32) and released the fix in version 1.14.5 of the extension. I'm not entirely sure if it also fixes your issue with the first config, though. It could be that the multi-prompting made the passphrase appear empty, but it's weird that the output shows no error (from the underlying ssh2 library). |
Got the same problem on Ubuntu 18.10. |
Things got better, but I am still having a second prompt when using the 2nd config. If I give the password at that second prompt it connects though. The issue as I see it, is that the whole extension is being restarted ("Activating extensions" appears at bottom left of the screen) after giving the password at the first prompt. The only error I get is through the VS code notifications.
Then the second prompt appears and the only strange thing after the successful connection are 2 "!" at the right of the workspace which show the below message when you hover the mouse above them:
The 1st config is suffering from the extension restarting issue too, which causes the second prompt. I added the key to the ssh-agent.exe (thanks for pointing that out) also I removed the "passphrase" and "privateKeyPath", added the "password: true" and then I was able to connect. I noticed that if I reload the VS Code I was able to connect on the first prompt without errors. But if I do a manual disconnect and try to re-connect again I got the extension restarting issue with the second prompt again. |
I'm able to kind of replicate the prompt-before-reload issue. Not getting the first error, though. It seems like vscode is trying to access |
I am having a similar issue in Windows 10 ver. 1809. My settings are the following:
When I try to connect I am getting this error:
"Error while connecting to SSH FS asd: All configured authentication methods failed"
The agent is already running as a service.
The private key has this form:
If I replace the above settings with these and try to connect:
It prompts me to enter my password again and again.
After the second prompt it throws this:
"Cannot read property 'resource' of undefined"
Of course it prompts me again to enter the password a 3rd time. I type the password again and it prompts me a 4th time, then if I press the escape button to cancel the 4th prompt it connects successfully.
Originally posted by @PanosBougas in #85 (comment)
The text was updated successfully, but these errors were encountered: