OpenSSH installation instructions

J_Man jeremy at linux-phreak.net
Sun Jul 22 00:09:31 PDT 2001


OpenSSH - Open-Source GPL SSH client/daemon

version - 2.9p2
download location -
ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/openssh-2.9p2.tar.gz
Home Page - http://www.openssh.com/

installation:
tar zxf openssh-2.9p2.tar.gz &&
cd openssh-2.9p2 &&
./configure --prefix=/usr &&
make &&
make install

cat >> /etc/init.d/sshd << "EOF"
#!/bin/sh
# Begin /etc/init.d/sshd

#
# Include the functions declared in the /etc/init.d/functions file
#

source /etc/init.d/functions

case "$1" in
        start)
                echo -n "Starting Secure Shell Daemon..."
                loadproc sshd
                ;;

        stop)
                echo -n "Stopping Secure Shell Daemon..."
                killproc sshd
                ;;

        restart)
                $0 stop
                /usr/bin/sleep 1
                $0 start
                ;;

        status)
                statusproc sshd
                ;;

        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;

esac

# End /etc/init.d/
EOF

cd /etc/rc3.d &&
ln -s ../init.d/sshd S202sshd &&
cd ../rc4.d &&
ln -s ../init.d/sshd S202sshd &&
cd ../rc5.d &&
ln -s ../init.d/sshd S202sshd




More information about the blfs-book mailing list