rust-lang/git2-rs

"authentication required but no callback set" on clone with SSH url

qrush opened this issue · 4 comments

Hey, maybe I'm doing something wrong here, but it doesn't seem like Repository::clone or RepoBuilder likes SSH urls, for example: git@github.com:qrush/m.git.

Maybe I'm missing something on linking/building? It seems like git2-rs includes libssl, etc.

PEBKAC

I take it you ended up running across RemoteCallbacks?

For posterity's sake that combined with RepoBuilder should do the trick!

Yeah, I had to pass in a credentials callback, which i'm still trying to figure out. Stumbling around.

You may want to take a look at cargo's credential callback or crates.io's credential callback for some inspiration.