By deltar7
I’m having so much trouble with SSH. The only work around I’ve been able to use to access my droplet is to ssh-copy-id my public key to my server. Then reset my PW on the console.
Once the key is confirmed, I can SSH in locally, but still need a PW. At this point I go to /etc/ssh/sshd_config and change PasswordAuthentication no. The next time I try to SSH I get the dreaded Permission denied (publickey). Repaste the key in authorized_keys and make PasswordAuthentication yes and it will work again.
I was just using it with SSH and PW but it got hacked so that is no longer an option. Problem is, with the PW off I cannot get in at all.
I wrote both of these about the issue, and contacted support (tumble weeds from support): https://stackoverflow.com/questions/52917470/permission-denied-publickey-digital-ocean/52972508?noredirect=1#comment92856534_52972508 https://serverfault.com/questions/938870/rampant-permission-denied-publickey-mac
What the hell?
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, @deltar7
I hope this has been sorted, but I would ask if you an confirm that the changes you made in the /etc/ssh/sshd_config file were removed/reversed every time you had this issue? If the key is added fine and if /etc/ssh/sshd_config is configured to access key authentication the you wont get a password prompt when you try to login.
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.