tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* sshd not starting (ADDENDUM)
@ 1999-07-01 11:34 Mirat Satoglu
  0 siblings, 0 replies; only message in thread
From: Mirat Satoglu @ 1999-07-01 11:34 UTC (permalink / raw)
  To: tru64-unix-managers

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@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@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@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-01 11:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-01 11:34 sshd not starting (ADDENDUM) Mirat Satoglu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox