Question

Why do I have to add the ssh keys in 2 places?

Posted February 6, 2015 1.9k views

It seems I have to login to digital ocean to add it, then I have to use ssh-copy-id to add it. Why do I have to do both? Is there a simpler way when managing a changing team of 6 or so people?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

For an already existing VPS adding a SSH key to DigitalOcean will not affect it.

You don’t need to add the SSH key to DigitalOcean unless you need it for creating a new droplet. You only need to change your authorized SSH key file on your server.

You don’t have to add it twice. When you provision the droplet you are able to select which SSH keys will be written to your authorized_keys file, so you don’t need to copy those.

Submit an Answer