-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Authorization fails when using an ssh-agent #189
Comments
I'm not familiar with russh's code, but I'm hoping to find some time to dig into this issue in the coming weeks. If anyone has any hints about how to debug this, please let me know |
Running with |
I tried that, but unfortunately the result wasn't that enlightening to me. Would it be useful if I uploaded the debug traces to this issue, though? |
Definitely! |
I hit this problem, and found I had to use an ED25519 key, since it didn't work with my default RSA key.
Hope that helps you. |
@tesujimath if you're on v0.43 or earlier, you need to enable the |
I'm trying to use a key loaded into an ssh-agent for authentication. This is not working. However, the key works when loaded from disk using
load_secret_key
.I generated a new RSA key with
ssh-keygen
.Here's the fingerprint of the key:
I've also loaded it into an ssh-agent. The ssh-agent reports the identical fingerprint:
I'm connecting to the ssh-agent like this:
And I'm loading the key from disk like this:
I first try authentication using
authenticate_future
and then fallback toauthenticate_publickey
.Here's what the full code looks like:
And here's the output:
Any suggestions about what's going wrong, or how to debug this?
Version info
I'm using russh e5f1224
The text was updated successfully, but these errors were encountered: