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: https://circleci.com/docs/2.0/add-ssh-key/ 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:
fingerprints:
- "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: https://circleci.com/docs/2.0/add-ssh-key/
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.
Thanks