Adding git repo fails due to Permission denied error

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Getting UI error message below when adding GIT repository:

Also following entry can be found in Fisheye logs:

Fisheye is using '/usr/bin/ssh' to authenticate with SSH authenticated repositories.
Exception executing command "/usr/bin/git ls-remote -h ssh://git@your-git-address.com/opt/git/ops.git " Non-zero exit code: 128 com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 Error executing command "/usr/bin/git ls-remote -h ssh://git@your-git-address.com/opt/git/ops.git ": Permission denied (publickey,gssapi-with-mic,password). fatal: The remote end hung up unexpectedly
Error testing connection.
Error talking to repository:
Permission denied (publickey,gssapi-with-mic,password). 
fatal: The remote end hung up unexpectedly
at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:162)
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:450)
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Connection failed.

原因

This GIT executable is not defined in Fisheye UI and the ssh keys are not configured.

ソリューション

First step is to define the Git executable inside Fisheye by doing:

  1. Go to Fisheye Administration.
  2. Click on Server.
  3. Look for Git Executable then click on Edit details.
  4. Set the path to your Git executable and save.

Once Git executable is defined refer to this article to generate SSH keys and have Fisheye authenticating against the GIT Server.

 

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.