Hi!
I created a rsa-ssh key about a week ago and was able to connect it perfectly. Due to technical issues on my laptop I had to reset it to factory settings, and I forgot to save the rsa private key.
I am trying to create a new set of ssh keys. I deleted the current ssh keys and created a new set and added the new rsa pub key on digital ocean.
Nevertheless when trying to connect ssh root@stashquad.com it still would not work. I logged into the server via the DO console and did cat ~/.ssh/authorized_keys. The outputted key was the old key, which surprised me since I thought DO was in charge of updating the authorized_keys file when updating the SSH Keys on DO. So I deleted authorized_keys and created a new one with the correct permissions (600) and typed the entire id_rsa.pub in it since clipboard is not enabled on your DO console. Still does not work. Now I can not delete the current SSH Key because of error Not Found on DO.
HELP! haha :)
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!
The correct file name is “authorized_keys” with the underscore.
Permissions:
chmod 700 ~/.ssh/ chmod 600 ~/.ssh/authorized_keys
Our system sets up ssh keys on your droplet when you first create it using cloud-init. Due to the way droplets are set up, we do not have access to your droplet’s filesystem once it’s created in order to update the key automatically. You’ll need to manually place your new key in the authorized_keys directory.
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.