SSH - Failed to add the host to the list of known hosts (/sbin/.ssh/known_hosts)
jvergis opened this issue · 0 comments
jvergis commented
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:
- Create a plan in bamboo.
- Edit the plan and select repositories.
- Click on "Add repository"
- Select Bitbucket Server / Stash
- Enter all the repository settings and click "Save repository"
- It results in the following error