OpenSSH 2.3.0p1 on Compaq Alpha

Hans-Georg Pabst hans-georg.pabst at ch.adtranz.com
Fri Jan 12 02:31:52 EST 2001


Hello,

I have installed OpenSSH 2.3.0p1 on a DEC AlphaServer 4000 under Tru64 UNIX 4.0F
and on a DEC AlphaStation 200 under Tru64 UNIX 5.1.

I tested Protocol 2 and 1 with RAS authentication resp. DSA authentication an
both work well.

There is one bug: I cannot view the man pages for OpenSSH under Compaq Tru64
UNIX. Are they in a special format which is not understood by the Tru64 UNIX man
command?

Here, I want to contribute a boot script for sshd under Tru64 UNIX:

#!/sbin/sh
#
# Purpose: Start sshd for OpenSSH at boot time.
#          For Compaq Alpha (Tru64 UNIX 4.0F and 5.1).
#
# Author:  Hans-Georg Pabst, CH-8702 Zollikon, Switzerland
#          <hans-georg.pabst at ch.adtranz.com>
#

SSHD_DAEMON=/usr/local/sbin/sshd
SSHD_CONFIG=/etc/ssh
SSHD_OPTS=
SSHD_TITLE="SSH Daemon (OpenSSH 2.3.0)"
SSHD_PID_FILE=/var/run/sshd.pid

PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

Pid=`/sbin/init.d/bin/getpid $SSHD_DAEMON -uroot`

case "$1" in
  'start')
     if [ -z "$Pid" ]; then
       if [ ! -f $SSHD_CONFIG/ssh_host_key ]; then
         echo "Generating $SSHD_CONFIG/ssh_host_key."
         ssh-keygen -b 1024 -f $SSHD_CONFIG/ssh_host_key -N ''
       fi
       if [ ! -f $SSHD_CONFIG/ssh_host_dsa_key ]; then
         echo "Generating $SSHD_CONFIG/ssh_host_dsa_key."
         ssh-keygen -d -b 1024 -f $SSHD_CONFIG/ssh_host_dsa_key -N ''
       fi
       if [ -x $SSHD_DAEMON ]; then
         echo "Starting ${SSHD_TITLE}"
         $SSHD_DAEMON $SSHD_OPTS > /dev/null 2>&1
       fi
     else
       echo "${SSHD_TITLE} already running (PID=$Pid)."
     fi
     ;;

  'stop')
     if [ -r $SSHD_PID_FILE ]; then
       FILE_PID=`cat ${SSHD_PID_FILE}`
     fi
     if [ ! -z "$FILE_PID" ]; then
       echo "Stopping ${SSHD_TITLE}"
       kill -TERM $FILE_PID
     else
       if [ ! -z "$Pid" ]; then
         echo "Stopping ${SSHD_TITLE}"
         kill -TERM $Pid
       fi
     fi
     ;;

  *)
     echo "usage: $0 {start|stop}"
     ;;
esac

Here, I want to contribute a boot script for egd under Tru64 UNIX:

#!/sbin/sh
#
# Purpose: Start EGD v0.8 (Entropy Gathering Daemon <warner at lothar.com>)
#          on a Compaq Alpha (Tru64 UNIX 4.0F and 5.1) at boot time.
#
# Author:  Hans-Georg Pabst, CH-8702 Zollikon, Switzerland
#          <hans-georg.pabst at ch.adtranz.com>
#

PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

EGD_DAEMON=/usr/local/sbin/egd.pl
EGD_SOCKET=/tmp/entropy
EGD_TITLE="Entropy Gathering Daemon (EGD 0.8)"
EGD_LOG=/dev/null
#
# create $EGD_SOCKET writable to all
#
umask 000

Pid=`/sbin/init.d/bin/getpid $EGD_DAEMON -uroot`

case "$1" in
  'start')
     if [ -z "$Pid" ]; then
       if [ -x $EGD_DAEMON ]; then
         echo "Starting ${EGD_TITLE}"
         nohup $EGD_DAEMON $EGD_SOCKET > $EGD_LOG 2>&1
       fi
     else
       echo "${EGD_TITLE} already running (PID=$Pid)."
     fi
     ;;

  'stop')
     if [ ! -z "$Pid" ]; then
       echo "Stopping ${EGD_TITLE}"
       $EGD_DAEMON --kill $EGD_SOCKET > $EGD_LOG 2>&1
     fi
     ;;

  *)
     echo "usage: $0 {start|stop}"
     ;;
esac

Best regards,

Hans-Georg Pabst










More information about the openssh-unix-dev mailing list