Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.