Report this

What is the reason for this report?

SSH Won't login permission denied (publickey,password)

Posted on February 18, 2017

I’ve tried all the tutorials on DO how to set up SSH but nothing will let me get past the access denied. I set it up originally and wanted to add another user, so I followed a tutorial on that, now I cant login with either… Is there a way to reset ssh and start over without damaging the server (being online) as there is a website connected that needs not be interrupted.

Thank you any help is appreciated…



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.

@lassee94933ef12b990f92bb30

Which guide(s) did you follow? Let’s start there so we’re on the same page and we can work from there :-).

@jtittle Thank you so far so good, I have access to COnsole and root as well. I followed the steps you have outlined. Tried for kicks to ssh from local machine… Still permission denied :/

cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'cat >> .ssh/authorized_keys && echo "Key copied"'

That worked for me.

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.