This repository was archived by the owner on Sep 11, 2020. It is now read-only.
SSH PublicKeys authentication requires importing two ssh
packages
#342
Labels
ssh
packages
#342
In order to authenticate to a repo via ssh using public/private keys, one must import both the
golang.org/x/crypto/ssh
and thegopkg.in/src-d/go-git.v4/plumbing/transport/ssh
, which are both namedssh
by default.This necessitates renaming one of the imports, and is a bit confusing. A more ideal situation would be to provide a function within the
git
package to create a new auth from a name/private key, such as:An even better solution would be to include "New" auth functions (HTTP, SSH) in the main
git
package, so that sub-packages (plumbing
) do not need to be imported for basic authentication functionality.The text was updated successfully, but these errors were encountered: