Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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.

share|improve this question
up vote 12 down vote accepted

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

PasswordAuthentication no
UsePAM no
ChallengeResponseAuthentication no
share|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

Your Answer

 
discard

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.