Git authentication fails only when Bower is installed (exit code No. 128)

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

?

+4
3

Git bash, Windows ( ConEmu ). - - SSH .

+3
  • bower install git bash
  • bower C:\Users\AppData\Local\bower
  • git config --global url.https://.insteadOf git://
  • bower cache clean.
  • bower install .
0

I can start the installation of the bower package by running the "as administrator" command prompt window.

0
source

Source: https://habr.com/ru/post/1618922/


All Articles