“rust cargo unable to update registry attempted ssh-agent authentication, but no usernames succeeded: `git`”
I got this error trying to cargo build
with a new dependency in the manifest. Fixed with:
eval `ssh-agent -s` ssh-add cargo build
Via github.com/rust-lang/cargo/issues/3381#issuecomment-308460530