I have installed Jenkins on a ubuntu server.I tried to integrate a bitbucket repository with Jenkins.but it gives an error appeared in the screenshot.I added the Jenkins server public key to bitbucket access key and also I have read write permission in bitbucket.Can some point out a solution?
Asked
Active
Viewed 493 times
0
-
Is `SSH` between Jenkins server and `Bitbucket` working? – Arpit Aggarwal Jun 27 '17 at 12:59
-
See https://stackoverflow.com/a/67315551/9956279 – snowpeak Apr 29 '21 at 11:06
1 Answers
0
You need to add the SSH host key in your known_host
file on the jenkins server:
jenkins@jenkins_host $ ssh-keyscan -H bitbucket.com >> ~/.ssh/known_hosts
You can also just try to ssh into bitbucket.com from the jenkins server and then accept the ssh host key.

zigarn
- 10,892
- 2
- 31
- 45