Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I have a Ubuntu server and another Ubuntu desktop... When I used ssh abc@123.456.78.9 it just shows Permission Denied (publickey). I have already set these to PasswordAuthentication no and UsePAM no, but even then I'm not able to connect the server... Please help me on this issue.

share|improve this question

1 Answer 1

If you set PasswordAuthentication to no you can login only by using keys. If you didn't set up keys properly it denies you the access with exactly that error (Permission Denied (publickey)). You either need to reactivate passwords or set up public key authentication (a lot of tutorials available for that).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.