sshd not starting (ADDENDUM)

From: Mirat Satoglu <mirat_at_bornova.ege.edu.tr>
Date: Thu, 01 Jul 1999 15:34:10 +0400 (EET DST)

Hi,
I have three responses for my problem but I could not solve it yet.
I still don't understand what is effecting my script, it works for other
machines, but for this one, although it says it is starting it is not in
fact. Strange !

Thanks to Paul Sand, Steve VanDevender and Ian Mortimer

Here are the responses;

From: Paul A Sand <pas_at_unh.edu>

We're running mostly 4.0d, but here's my /sbin/init.d/sshd script
which works OK for me (I mindlessly modified some other script):

#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin
export PATH

case "$1" in
'start')
    set `who -r`
    if [ $9 = "S" ]; then
        if /usr/local/sbin/sshd; then
            echo "sshd started"
        fi
    fi
    ;;
'stop')
    /bin/kill `cat /var/run/sshd.pid`
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac


From: Steve VanDevender <stevev_at_hexadecimal.uoregon.edu>

Have you checked the init script? Is sshd where the init script
is trying to look for it? If sshd is there, what happens when
you run sshd directly?


From: Ian Mortimer <ian_at_physics.uq.edu.au>

Hi Mirat

You didn't say which version of ssh but I haven't had any problems
with ssh 1.2.26 or earlier versions using the startup script below.

About the only thing I can suggest is to try changing the starting
order. Try it with ssh starting earlier or later. Maybe
something else is interfering.


Ian
------------------------------CUT----------------------------------
pids=`/bin/ps -e | grep /usr/local/sbin/sshd | grep -v grep | sed -e 's/^
*//' -e 's/ .*//'`

case $1 in
'start')
        echo "Starting Secure Shell Daemon"
        [ -n "$pids" ] && kill -9 $pids
        /usr/local/sbin/sshd
        ;;
'stop')
        echo "Stopping Secure Shell Daemon"
        [ -n "$pids" ] && kill -9 $pids
        ;;
*)
        echo "usage: $0 {start|stop}"
        ;;
esac




Here is my question:
Dear managers,

I have secure shell installed on my dec3000/m500 with 0sf v.3.2.c , but
after reboot, although it says
 
>starting sshd
>sshd is ready

It does not start and each time , I execute /sbin/init.d/sshd to start it.
Except the nis , I have other dec 3000/m400 machines with the same os but
c2 enabled, and they work well. Any idea ?

Mehmet Mirat Satoglu
Received on Thu Jul 01 1999 - 12:39:41 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT