Does somebody know. How i can configure sshd to connect ONLY with Public Key Auth?

currentStatus : If you have no key. then you can log in with your password.


Make sure the following configuration items are set like this in your sshd_config:

PasswordAuthentication no
UsePAM no
ChallengeResponseAuthentication no
  • it's still possible to enter the password.I think it need more configuration – n00ki3 Jan 12 '10 at 17:06
  • Have you restarted ssh? – sntg Jan 12 '10 at 17:14
  • i did restart the sshd. still .. its possible . BUT : I changed UsePAM to no . now it works fine :) – n00ki3 Jan 12 '10 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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