Hello,
I'm a newbie in DevOps stuff and didn't understand the step #3 in the [Use SSH keys in Bitbucket Pipelines](https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html) guide.
I have Ubuntu 18.04 server on DigitalOcean and trying to setup a CI/CD workflow for a NodeJS/monorepo repository. Below are the steps I made:
- Enabled pipelines in the repository (success)
- Step1: Generated SSH key pair (success)
- Step2: Updated the known hosts (entered DO server IP and fetched, success)
At Step 3:
```sh
ssh-copy-id -i my_ssh_key user@host
```
I didn't understand this command.
- Where should I run this command? In my local machine, in the remote server?
- Should I replace `my_ssh_key` with something else? If yes, with what?
- Should I replace `user` and `host` with my DO user and IP?
Could someone please explain?
As far as I've understood, I just need to copy the public key to the `~/.ssh/authorized_keys` and that's what I did, manually. So is it enough?
Hi Mehmet,
Yes, that should be enough. The ssh-copy-id command is something you can run on your local machine to install your ssh key into ˜/.ssh/authorized_keys on your server. If you've already done that manually then you don't need to run the command.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.