Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.