Dear folks
Actually this script should come with your ssh distribution
However, one of mine was from www.ssh.com

Hope this help
Pat
------------------------------- Begin Here
-------------------------------------------
#!/bin/sh
#
# chkconfig: 345 85 15
# description: SSH Secure Shell daemon
#
# Author: Sami Lehtinen <[EMAIL PROTECTED]>
#
# sshd2         This shell script takes care of starting and stopping
#               sshd2.
# 
# partly
#
# Copyright (C) 2000 SSH Communications Security Corp, Helsinki, Finland
#
# Most of the code taken from RedHat Linux /etc/rc.d/init.d/httpd, 
# so I guess
#
# Copyright (C) 1999 RedHat, Inc.

[ -f /usr/local/sbin/sshd2 ] || exit 0

PORT=

PORT=`grep Port /etc/ssh2/sshd2_config | awk '{ x = $2 } END {print x}' -`
if [ "X$PORT" = "X" ]
then
        PORT=22
fi

# See how we were called.

case "$1" in
  start)
        # Start daemons.
        echo "Starting sshd2 in port $PORT: "
        /usr/local/sbin/sshd 
        echo "done."
        ;;
  stop)
        # Stop daemons.
        echo "Shutting down sshd2 in port $PORT: "
        kill `cat /etc/ssh2/sshd2_$PORT.pid`
        echo "done."
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: /etc/init.d/sshd2 {start|stop|restart}"
        exit 1
esac

exit 0
-------------------------------- End Here
----------------------------------------
-----Original Message-----
From: Aleksander V. Mazlov [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 28, 2001 11:55
To: [EMAIL PROTECTED]
Subject: Start-stop sshd daemon script - need one


Hi,


I accidentally erased my sshd start-up script. can smone email me a
copy?

thank you,
avm


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to