-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Cannot perform ssh public key authentication from codeserver terminal. #3189
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
Comments
I suppose it must be failing to ask for the password. Have you configured it to use some other method of pinentry? I was unable to reproduce with this:
|
The problem is that it doesn't even go to the state of entering a password. Therefore, we believe that the private key is not being loaded. |
2021-04-23.09-35-21.mp4 |
Are you using ssh-agent? If the
If that doesn't help then using |
As you mentioned, I made sure that the ssh-agent command was available. ssh shell
code server shell
By deleting SSH_AUTH_SOCK in codeserver's shell, it worked fine.
|
Hurrah! ssh-agent is probably trying to use a graphical pinentry which of course won't work on the terminal. I'm not sure if there's anything we can do on our end to fix it but it would be cool if we could make ssh-agent ask for the passphrase through VS Code. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
chmod 600 your_private_key, it fixed my problem |
OS/Web Information
code-server --version
: 3.9.3 fe2dc2dSteps to Reproduce
1.Execute
ssh -T github
.2.An error will be displayed.
Expected
Expect to get a response like ssh or COCKPIT(WEBSHELL) as follows
Solution
It works properly by discarding the environment variables as follows.
or
The text was updated successfully, but these errors were encountered: