About Us Products Services Contact Us
Manucomp | Home
1 Year Warranty Call us Toll-Free at : 1-866-440-1115
 

Installing OpenSSH


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


Copyright © Manucomp 2005. All Rights Reserved. Disclaimer | Privacy Policy
All Sun and Cisco products come with 1 year warranty
Canadian 6-7007 Islington Avenue • Toronto, Ontario, Canada • L4L 4T5 •
Phone : 416-484-0781 • Fax : 416-946-1267 • Toll-Free: 1-866-440-1115
USE OF TRADEMARKS
This site is independent of and does not represent any manufacturer or company for which products may be displayed on this web site. Additionally, said manufacturers do not officially sponsor, approve, or endorse this site or its content. All associated or other logo's found on this site are registered trademarks of their respective owners.