davidB / git2_credentials

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

choose the ssh identify file from .ssh/config + hostname #16

Closed davidB closed 3 years ago

davidB commented 3 years ago

Currently, ssh access only is via ssh-agent or default to .ssh/id_rsa, An improvement would be to support (partially) binding between host and identity file define into $HOME/.ssh/config like

host xxx
 HostName bitbucket.org
 IdentityFile ~/.ssh/id_bitbucket
davidB commented 3 years ago

fix: 28cebc4b389eb063715107969f5f1298d6aba19d