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 firstname.lastname@example.org 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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!