Question

ssh-copy-id question

Posted May 11, 2019 855 views
QuickstartUbuntu 18.04

Trying to setup SSH keys so I can connect to my droplets files with filezilla. I should have done this during the droplet creation stage but didn’t and now I have to do it manually.

I’m using this tutorial:
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-existing-droplet/

I’m trying to locally use ssh-copy-id to copy my public SSH key to the droplet.

I know I have to substitute the IP address in this example with my droplets IP, but what do I use for username part of the command? Do I use my digitalocean account email address?

ssh-copy-id username@droplet-ip-here

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.

×
1 answer

Hello, you can use root as the username. If you do not have the password, you can reset it via the control panel. Though keep in mind that this would require a quick reboot.

Submit an Answer