Koozali.org: home of the SME Server

SSH won't start (prob after sme 7.0 to 7.1 update)

Offline Dirk

  • *
  • 20
  • +0/-0
SSH won't start (prob after sme 7.0 to 7.1 update)
« on: February 04, 2007, 10:58:18 AM »
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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
SSH won't start (prob after sme 7.0 to 7.1 update)
« Reply #1 on: February 04, 2007, 11:23:12 AM »
Please take it to the bugtracker.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline swissis

  • ***
  • 61
  • +0/-0
SSH won't start (prob after sme 7.0 to 7.1 update)
« Reply #2 on: March 18, 2007, 07:40:20 PM »
Same problem here.

When i try service sshd start it responds with OK but i can't connect using Putty or WINscp3.

Did you solve the problem yet?
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SSH won't start (prob after sme 7.0 to 7.1 update)
« Reply #3 on: March 18, 2007, 07:50:27 PM »
Quote from: "cactus"
Please take it to the bugtracker.
"It should just work" if it doesn't report it. Thanks!

Offline swissis

  • ***
  • 61
  • +0/-0
SSH won't start (prob after sme 7.0 to 7.1 update)
« Reply #4 on: March 19, 2007, 08:29:42 PM »
I found it: my ssh dsa host key was empty

when i tried to start the ssh by hand it said Generating host key and i typed "Y"

Now i can get in again
...