Using the command git clone and getting issues with bitbucket authenticity

my config.yml

       - image: *******/robottestrunner:1.0
    - run:
        name: Download Robot Framework Test
        command: git clone*******/robotframeworktest.git
    - run: robot -d results Tests/Amazon.robot

this is the message I am getting in circleci which ultimately gets timed out and the build fails

The authenticity of host ‘ (’ can’t be established.
RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AuytviuytraxvSc0ojez9YXaGp1A.
Are you sure you want to continue connecting (yes/no)?

if i run ssh -T in gitbash I am able to enter my passphrase and get logged in

Have you any idea how i can get around this issue?

yes sorry about that. done

Thanks for the edit.

Ah, you’re doing a git clone without setting up your SSH keys on the remote.

Is the repo at the project that is being monitored by CircleCI? If so you can replace the whole run step with checkout, and it will copy the correct keys for you and then do the clone.

If however you are bringing this in as an extra repo, and it is available publicly. use the https protocol instead.

Finally if it is private and it’s not your monitored repo, you’ll need to copy an SSH key over manually. You can see a demo of how to do it in a checkout step elsewhere - CircleCI has a shell script to set it up.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.