By Shafraz Faiz
SSH config has password authentication as no, and it was ok until i restored a previous snapshot, i deleted the known host record also.
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!
In most cases, selecting the correct key on the droplet creation page will insert it into the new droplet on creation. This process depends on cloud-init so if any changes affected that it could potentially result in what you’re seeing. Either way, if you open a ticket with our support team they can boot your droplet to a recovery ISO (Debian based live dvd image) and from there you can manually add your key to /root/.ssh/authorized_keys Once you’ve added your key manually, update your ticket and the support team can remove the recovery image so you can boot back to your disk.
I had (have) the same issue. When restoring an image that already had ssh keys configured, if I ask for an SSH key to be included (the same one already there), it’s no longer possible to use the SSH key to log in. If I don’t include it, then I get an email with a new root password, which defeats the purpose of using password-less SSH, and in fact in my scenario is not usable, since I have disabled root logins and password.
I’d like to know how to do this properly without having a new password set.
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.