<span>I followed exactly the steps as described here: <a href="https://community.atlassian.com/t5/Bitbucket-questions/How-ca" target="_blank">https://community.atlassian.com/t5/Bitbucket-questions/How-ca</a></span><span>n-I-use-SSH-in-Bitbucket-Pipelines/qaq-p/347345#M25670</span>
<span>- Generate a Pipelines SSH key in repo 1</span>
<span>- Add an access key to repo 2 where I paste in the public key of step 1</span>
<span>- git clone in bitbucket-pipelines.yml</span>
<span>However, it does not work.. </span>
<span>Step 8/11 : RUN git clone <a href="mailto:git@bitbucket.org" target="_blank" rel="nofollow noopener noreferrer">git@bitbucket.org</a>:scisports/py-test.git</span><span> ---> Running in b08f73d8cc5d</span><span>Cloning into 'py-test'...</span><span>Host key verification failed.</span><span>fatal: Could not read from remote repository.</span><span>Please make sure you have the correct access rights </span><span>and the repository exists.</span>
<span>What could be the problem?</span>
Looking here, https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/SSH-connection-Hosting-server-to-Bitbucket-Host-key-verification/qaq-p/836082, it says it is an issue with known_hosts. However, for another Bitbucket repo this should be already fixed?