Report this

What is the reason for this report?

SSH Permission Denied

Posted on August 31, 2018

Good evening. I’ve been trying to set up a server that can run a script I bought, specifically the kernel video sharing one. I have been trying to solve this issue for the last couple hours. I have done everything from resetting my server to starting a new one. Basically, I am trying to set up my SSH keys for Ubuntu. When I try to authenticate to the Ubuntu server, I keep getting a message that says: Permission denied (publickey). I have entered my public key correctly, using the guide found on this page. I have even gone so far as to restart my server from scratch and make new keys to use on my new server, still the same error. I use PuttyGen to generate the keys, and then add them both through the operating system and the settings section before the OS. What am I doing wrong? I am using Windows if that makes a difference.



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.

If I were to start from scratch, using putty to generate new keys and starting my server with the the SSH already connected, how do add my public SSH to Ubuntu without getting the error? My private is already added…

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.