Getting SSH to work too ambiguous to follow?


I’m new to this whole CI thing. Plus CircleCI is the first I’m trying. I like the process, except the docs is just ambiguous to say the least.

I’m trying to make sense of this: in solving these steps I wanna accomplish

After building my angular app, I wanna have it pushed via scp to a droplet I have on DO

After everything, here’s my command to copy over:

- run: scp -r ./dist/app/* user@IP-Address:/home/user/pwa/app/

The response I get in the CI build logs is this:

ECDSA key fingerprint is ab:e4:...39:46:.....xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? Step was canceled```

**What I've done**

Under project settings, I've added my private key:


Then my `config.yml` file, I've added this:

    - add_ssh_keys:
              - "ab:xxx:be"

Still was popping up that show stopper ssh confirm in the build logs, so I went ahead to log into CI via ssh, then `ssh-copy-id` the ssh details onto the destination server.

Unfortunately, still no success. That "Are you sure" confirmation still comes up:

Now, this doc is too vague:

For example: 
> 5. In the  **Private Key**  field, paste the SSH key you are adding.

What private key?CI Image's, or Destination server's private key?

Assuming I guess one of these and add, then what? Am I done? What should I do next?

So back to my question, with the steps I've done above, that I still get that "Are you sure you want to continue connecting (yes/no)?", what's the solution?

Do I combine all methods: Add fingerprints (which fingerprints even, Destination Server's, or CCI's) after adding the private key?

I've read many, and combed the forums too. All bits and pieces, and nothing seems to be working for me. I just wanna scp stuff from CI to a VPS via SSH. I'm not trying to take over the world.

Will appreciate a much easy to follow, unambiguous guide on how to scp into a vps via ssh from the CI.



When you added your SSH key, what did you enter as the host name? If you haven’t yet tried, try it with the hostname blank.


I just tried a blank hostname field when adding the private key. Still asks for the add to

Are you sure you want to continue connecting (yes/no)?

Is there an option to confirm commands via the logs terminal in the browser?

This whole ssh is frustrating. I’ve tried all possible options I’ve read based on my understanding, yet none works so far.

Tried different things 2 days now. :thinking:


One thing you might want to try is telling ssh not to check the host key:

scp -o StrictHostKeyChecking=no [the rest of your command]

Hope this helps,