By clinquier
Hello everyone,
I’m new with the DigitalOcean. I followed the instructions described in this article: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets.
I already created my ssh keys and i want to add the key to a droplet existing.
Si i used " cat ~/.ssh/id_rsa.pub | ssh root@[your.ip.address.here] “cat >> ~/.ssh/authorized_keys” ". I tried either the ssh public or the ssh private, i have the same message: Permission denied (publickey).
Ì don’t know how to do with this problem. Someone can help me. Thanks. :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @clinquier
You can follow this article on how to add your ssh key to an existing droplet:
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-existing-droplet/
Also keep in mind that you can always access your droplet via the console from the control panel and add the key from there.
Let me know if you have any questions.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.