.
Manucomp Systems
Hours of Operation

Monday to Friday:
9am - 6pm EST

Saturday & Sunday:
Closed

If you would like additional information please contact us toll-free at :

1-866-440-1115
info@manucomp.com

Can't find the product you are looking for?
Request a quote.
Installing OpenSSH
Back to Sun Tips


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