ssh ÆÐÅ°Áö ¼³Ä¡Çϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-11-11 15:55:53
 

# cd /tmp

# pkgadd -d gzip*
# /usr/local/bin/gunzip -d openssl-0.9.7a-sol7-sparc-local.gz
# pkgadd -d zlib-1.1.4-sol8-sparc-local
# pkgadd -d openssh-3.7.1p2-sol7-sparc-local
# pkgadd -d openssl-0.9.7a-sol7-sparc-local
# pkgadd -d prngd-0.9.25-sol7-sparc-local
# pkgadd -d gcc-3.2.3-sol7-sparc-local
# pkgadd -d egd-0.8
# patchadd 112438-02

# /usr/local/sbin/prngd /var/spool/prngd/pool

# ssh-keygen -d -f /usr/local/etc/ssh_host_dsa_key -N ""
# ssh-keygen -d -f /usr/local/etc/ssh_host_rsa_key -N ""

ld.so.1: ssh-keygen: Ä¡¸íÀû: libz.so: ¿­±â ½ÇÆÐ: ÇØ´ç ÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ¾øÀ½
ÁߴܵÊ(Killed)
=> libz.so¸¦ test¼­¹ö¿¡¼­ copy


# ssh-keygen -b 1024 -t rsa -f /usr/local/etc/ssh_host_key -N ""

# cd /usr/local/sbin

# useradd sshd

# ./sshd start

Âü°í:

ld.so.1: ssh-keygen: fatal: relocation error: file /usr/local/ssl/lib/libcrypto.
so.0.9.6: symbol main: referenced symbol not found
Killed ¿¡·¯ ¹ß»ý½Ã...

env CPPFLAGS=-I/usr/local/ssl/include \
CFLAGS=-I/usr/local/ssl/include -L/usr/local/ssl/lib \
./configure --with-ssl-dir=/usr/local/ssl <other options>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Startup Scripts:
Create a startup script for the ssh daemon.
/etc/init.d/ssh


#! /bin/sh
#
# start/stop the secure shell daemon

case "$1" in

'start')
    # Start the ssh daemon
    if [ -f /usr/local/sbin/sshd ]; then
          echo "starting SSHD daemon"
          /usr/local/sbin/sshd &
    fi
    ;;

'stop')
    # Stop the ssh deamon
    PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep sshd | /usr/bin/awk '{print $1}'`
    if [ ! -z "$PID" ] ; then
          /usr/bin/kill ${PID} >/dev/null 2>&1
    fi
    ;;

*)
    echo "usage: /etc/init.d/sshd {start|stop}"
    ;;

esac

Make the script executable and create a startup script on run level 2.

#chmod +x /etc/init.d/sshd
#ln -s /etc/init.d/sshd /etc/rc2.d/S99sshd


Create a startup script for the pseudo random generator daemon.
/etc/init.d/prngd


#! /bin/sh
#
# start/stop the pseudo random generator daemon

case "$1" in

'start')
    # Start the ssh daemon
    if [ -f /usr/local/bin/prngd ]; then
          echo "starting PRNG daemon"
          /usr/local/bin/prngd /var/spool/prngd/pool&
    fi
    ;;

'stop')
    # Stop the ssh deamon
    PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep prngd | /usr/bin/awk '{print $1}'`
    if [ ! -z "$PID" ] ; then
          /usr/bin/kill ${PID} >/dev/null 2>&1
    fi
    ;;

*)
    echo "usage: /etc/init.d/prngd {start|stop}"
    ;;

esac

Make the script executable and create a startup script on run level 2.

#chmod +x /etc/init.d/prngd
#ln -s /etc/init.d/prngd /etc/rc2.d/S99prngd


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦