I have a Ubuntu server and another Ubuntu desktop... When I used ssh [email protected]
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.
Add a comment
|
1 Answer
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).