I'm building a project that has a Git repository as a dependency:
"dependencies": {
"base-resources": "git@git.companyname.com:bower-projects/base-resources.git"
}
The build fails like so:
bower ECMDERR Failed to execute "git ls-remote --tags --heads git@git.companyname.com: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 git@git.companyname.com: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?