본문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++



http://www.sunfreeware.com/indexsparc8.html

에서 다운로드


필수 구성요소 pkginfo 로 확인하고 안되있을때 먼저 설치한다.

openssl-0.9.8k, zlib, libgcc-3.4.6 or gcc-3.4.6



설치후 세팅 -----------

1. ssh 계정설정
# mkdir /var/empty
# chown root:sys /var/empty
# chmod 755 /var/empty
# groupadd sshd
# useradd -g sshd -d /var/empty -s /bin/false sshd


2. sshd 인증키 생성

# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""


3. start 스크립트 생성

#!/sbin/sh

case "$1" in
'start')
/usr/local/sbin/sshd
;;
'stop')
/usr/bin/pkill -x -u 0 sshd
;;
*)
echo "Usage: : $0 {start|stop}"
exit 1
;;
esac
exit 0


4. ssh 스크립트 퍼미션 변경
# chmod 744 /etc/init.d/ssh
# chgrp sys /etc/init.d/ssh
# ln -s /etc/init.d/ssh /etc/rc2.d/S99ssh
# ln -s /etc/init.d/ssh /etc/rc0.d/K99ssh
(*.95.187.205)