Dirk H. Schulz wrote:
Hi folks,
we have a very weird phenomenon:
On two of our RedHat EL4 Update 4 servers root cannot login via ssh
using public keys. All other users can. root is asked for a password
instead.
sshd_config is RHEL4 default (that means pubkey auth allowed etc.), and
the rest is as well. The public keys are correctly appended to
/root/.ssh/authorized_keys. Rights on .ssh and its files are correct. I
have even tarred+gzipped and copied roots .ssh directory to another
server and tested there.
Maybe /root, / or /root/.ssh is group or world writable?
Failing that, if you either run sshd in debug mode (/path/to/sshd -ddd)
or increase LogLevel in sshd_config then the server will provide more
information about why the authentication was denied.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.