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:// " 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:// ": 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(
at com.cenqua.fisheye.RepositoryConfig.testConnection(
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
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.