I have DO instance on CentOS Linux and want to setup access using Putty. While i followed all the instructions on PKI , I got stuck on step to update my PUB key on DO SSH directory. Under this directory I have created file name d"authorized_keys" using VI editor and trying to paste my key in there however results are vague. Key is copied on lower case and all characters are messed up. I have hot roadblock as I cannot do anything with lousy console access.
Second question i have it once key is updated what else need to be checked (like sshd_config) etc and do i need to restart any service to get this in to effect?
I have putty and Mobaterm as my Term applications.
appreciate all you expert help!
Regards, Himanshu
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!
Hi there @socialindia,
What I could suggest here is following the steps from this article here on how to regain access to your Droplet:
https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/
Basically what you need to do is to access the Droplet via your web console, enable root SSH access, then SSH with your root user and your password and after that add your SSH key.
Copy and pasting your SSH key via the web console directly will not work.
Hope that this helps! Regards, Bobby
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.