All of a sudden ssh stopped working after a post-upgrade and reboot.
sshd logfile shows:
/etc/ssh/sshd_config: line 21: Bad configuration option: UsePAM
/etc/ssh/sshd_config: line 30: Bad configuration option: MaxAuthTries
/etc/ssh/sshd_config: terminating, 2 bad configuration options
sshd_config:
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at
http://wiki.contribs.org/development/#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
Port 22
ListenAddress 192.168.1.1
HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_rsa_key
KeyRegenerationInterval 3600
LoginGraceTime 600
Protocol 2
ServerKeyBits 768
UsePAM no
ChallengeResponseAuthentication no
Compression yes
IgnoreRhosts yes
KbdInteractiveAuthentication no
MaxAuthTries 2
MaxStartups 10:30:60
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
RSAAuthentication yes
RhostsRSAAuthentication no
StrictModes yes
UsePrivilegeSeparation yes
Subsystem sftp /usr/libexec/sftp-server
X11DisplayOffset 10
X11Forwarding no
KeepAlive yes
PrintMotd no
SyslogFacility AUTH
LogLevel INFO
If i comment out those 2 configuration options Usepam and maxauthtries sshd starts and works normally!
On my system are the following rpm's for ssh:
e-smith-openssh-1.12.0-6.el4.sme.noarch.rpm
openssh-3.9p1-8.RHEL4.17.1.i386.rpm
openssh-clients-3.9p1-8.RHEL4.17.1.i386.rpm
openssh-server-3.9p1-8.RHEL4.17.1.i386.rpm
btw my system is running at the first kernel of 7.0 cause the other kernels won't boot/mount my scsi mirror raid (lvm errors)
config show sshd:
sshd=service
MaxAuthTries=2
PasswordAuthentication=yes
PermitRootLogin=yes
Protocol=2
TCPPort=22
access=private
status=enabled
Does anybody know whats wrong?
Dirk