I'm building a project that has a Git repository as a dependency:
"dependencies": {
"base-resources": "[email protected]:bower-projects/base-resources.git"
}
The build fails like so:
bower ECMDERR Failed to execute "git ls-remote --tags --heads [email protected]:bower-projects/base-resources.git", exit code of #128 Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Additional error details: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.
However, I can run the same command from Git bash with no issues:
git ls-remote --tags --heads [email protected]:bower-projects/base-resources.git
I've tried all the common solutions, such as changing the Git URL protocol, clearing the Bower cache, and setting specific local SSH config options for this host:
Host git.companyname.com
RSAAuthentication yes
IdentitiesOnly yes
IdentityFile ~/.ssh/gitlab_rsa
User git
What other issues should I check for?
My solution ended up being to use Git bash rather than the Windows terminal (or ConEmu in my case). Something is handled differently with respect to SSH keys between the two systems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With