openssh
/export/home/sources/openssh-3.5p1
To install OpenSSH with default options:
./configure make make install
you will get this error
Privilege separation user sshd does not exist
*** Error code 255 (ignored)
create the non-existing user 'sshd'.
# useradd -g other -d /var/run -c 'sshd nonpriv userid' -s /bin/false sshd
create the startup script in /etc/init.d, change permissions and setup the links.
#!/bin/sh
# Startup/shutdown script for
sshd SSHD=/usr/local/sbin/sshd
pid=`/usr/bin/ps -Af | /usr/bin/grep $SSHD | awk '{ if ( $3 == "1" ) print $2 }'
`
case $1 in
'start')
if [ "${pid}" = "" ]
then
if [ -x $SSHD ]
then
$SSHD
fi
fi
;;
'stop')
if [ "${pid}" != "" ]
then
/usr/bin/kill ${pid}
fi
;;
*)
echo "usage: /etc/init.d/sshd {start|stop}"
;;
esac
# chmod 744 /etc/init.d/sshd
# cd /etc/rc2.d
# ln -s /etc/init.d/sshd S99sshd
# ln -s /etc/init.d/sshd /etc/rc0.d/K99sshd
|