Error fe-ssh.sh - Permission denied - unable to fork when cloning Git repository

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Fisheye/Crucible is unable to clone a Git repository over SSH and the following error appears in the atlassian-fisheye-YYYY-MM-DD.log:

1 Mon Jan 18 14:22:40 GMT-500 2016: Unable to clone remote repository: ssh://git@bitbucket.company.com:7999/project/repo.git - [fatal: cannot exec '/opt/atlassian/fisheye/fecru-3.9.0/bin/fe-ssh.sh': Permission denied, fatal: unable to fork] - Cloning into bare repository 'clone'...

Cause

The user running Fisheye/Crucible does not have permission to execute the fe-ssh.sh script.

Resolution

Set the permissions correctly on <FISHEYE_INSTALLATION>/bin/fe-ssh.sh so that the user running Fisheye/Crucible can execute the file. This can likely be accomplished with chmod +x fe-ssh.sh.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.