davidB / git2_credentials

Provide credentials function to used with git2::RemoteCallbacks.credentials
Apache License 2.0
21 stars 4 forks source link

Not working with local SSH keys #9

Closed cecton closed 4 years ago

cecton commented 4 years ago

First thank you for your work!

I have tried this crate today and I found out that it is using the SSH agent. So I killed the daemon :smiling_imp: and try again and now it says: error authenticating: failed connecting with agent; class=Ssh (23)

I have the impression that this crate doesn't handle at all the id_rsa and id_rsa.pub in the $HOME/.ssh

Is it supported? Do you intend to support it? (Do you want a PR?)

davidB commented 4 years ago

Hi,

Thanks for the feedback. you are right it doesn't handle well all the key (id_rsa, id_ed25519 or any name).

PR are welcome.

You can start at https://github.com/davidB/git2_credentials/blob/master/src/lib.rs#L163

cecton commented 4 years ago

Thank you for the release :grin: