By cesarfarro
Hello Digital Ocean,
I am César I have three droplets over Linux with password authentication, and I really like to add SSH key auth.
Today I generated my public key by putty key generator but I have not found the option to add this public key to the droplets for using ssh key auth.
I really appreciate your help
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 @cesarfarro
So you will need to login to the server via the password authentication and paste the public key into ~/.ssh/authorized_keys on a new line
Some guides
Regards
Simon Founder - SnapShooter DigitalOcean backups
Hello, cesarfarro
You can double check this tutorials on how to create and upload SSH Keys with PuTTY on Windows:
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/create-with-putty/
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-existing-droplet/
If you’re using a SSH-client the following command with upload the keys for you and you’ll just need to enter your username password:
cat ~/.ssh/id_rsa.pub | \
ssh username@203.0.113.0 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Hope that this helps! 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.