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.

link|improve this question

80% accept rate
feedback

1 Answer

up vote 11 down vote accepted

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

PasswordAuthentication no
UsePAM no
ChallengeResponseAuthentication no
link|improve this answer
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
feedback

Your Answer

 
or
required, but never shown

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