cptactionhank/docker-atlassian-bamboo

SSH - Failed to add the host to the list of known hosts (/sbin/.ssh/known_hosts)

jvergis opened this issue · 0 comments

When linking from bamboo to a repository on bitbucket

If bitbucket has "SSH access keys enabled" then bamboo (via ssh) needs to write the public key to the "sbin/.ssh" directory however it fails because the directory is only accessible to root but the container runs under the daemon user.

In order to reproduce:

  1. Create a plan in bamboo.
  2. Edit the plan and select repositories.
  3. Click on "Add repository"
  4. Select Bitbucket Server / Stash
  5. Enter all the repository settings and click "Save repository"
  6. It results in the following error

image