I am creating a project with a Git repository as a dependency:
"dependencies": {
"base-resources": "git@git.companyname.com:bower-projects/base-resources.git"
}
Build failure happens like this:
bower ECMDERR Failed to execute "git ls-remote --tags --heads git @ git.companyname.com: bower-projects / base-resources.git", exit code from # 128 Denied, please try again. Permission denied, try again. Permission denied (publication, password). fatal: Failed to read from remote repository. Make sure you have the correct permissions and the repository exists.
Additional error information: Permission denied, try again.
Permission denied, try again.
Permission denied (publication, password).
fatal: Failed to read from remote repository.
Please make sure that you have the correct permissions and the repository exists.
However, I can run the same command from Git bash without problems:
git ls-remote --tags --heads git @ git.companyname.com: bower-projects / base-resources.git
I tried all common solutions such as changing the Git URL protocol , clearing the Bower cache, and setting certain local SSH configuration parameters for this host:
Host git.companyname.com
RSAAuthentication yes
IdentityFile ~/.ssh/gitlab_rsa
git
?