[CentOS] Disabling Password authenitication with SSH

Thu Feb 8 04:05:27 UTC 2007
Ski Dawg <centos at skidawg.org>

Hello everyone,

We are setting up a server at work, and we have run into something that
I am not sure how to resolve.

We have set up sshd (OpenSSH server) on the machine. We have placed ssh
keys into each user's home directory that needs to access the system
(and they work). We want to disable everyone from logging in, using a
password, utilizing ssh keys only to access the system.

I have modified /etc/ssh/sshd_conf to have these settings:
    ChallengeResponseAuthentication no
    PasswordAuthentication no
    UsePAM no

I then restarted the ssh daemon (/etc/init.d/sshd restart), but it still
allows the user to login using their password. What am I missing?

Searching google, only turned up the changes that I made above, so I am
unclear what else that I need to do. Any guidance would be greatly
appreciated. 
--
Doug

Registered Linux User #285548 (http://counter.li.org)
----------------------------------------
Random Thought:
If all else fails, immortality can always be assured by spectacular error.
		-- John Kenneth Galbraith