Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jvergis opened this issue Jun 16, 2018 · 0 comments

Comments

@jvergis
Copy link

jvergis commented Jun 16, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant