Download packages at:
http://www.sunfreeware.com/programlistsparc8.html
1. check Solaris patch: if the system no have 112438-01, Must be install patch first.
#unzip 112438-03.zip
#patchadd 112438-03
2. unzip package:
# gunzip openssh-3.8.1p1-sol8-sparc-local.gz
# gunzip openssl-0.9.7d-sol8-sparc-local.gz
# gunzip zlib-1.2.1-sol8-sparc-local.gz
# gunzip libgcc-3.3-sol8-sparc-local.gz (if you don"t already have gcc 3.3.2 installed)
3. install package by root :
# pkgadd -d openssh-3.8.1p1-sol8-sparc-local
# pkgadd -d openssl-0.9.7d-sol8-sparc-local
# pkgadd -d zlib-1.2.1-sol8-sparc-local
# pkgadd -d libgcc-3.3-sol8-sparc-local (if you don"t already have gcc 3.3.2 installed)
4. vi /etc/profile addition following line:
LD_LIBRARY_PATH=:/usr/local/lib:/usr/local/ssl/lib:/usr/openwin/lib
PATH=$PATH:/usr/local/bin:/usr/local/sbin
export PATH LD_LIBRARY_PATH
#. /etc/profile
5. add user:
# mkdir /var/empty
# chown root:sys /var/empty
# chmod 755 /var/empty
# groupadd sshd
# useradd -g sshd -c "sshd privsep" -d /var/empty -s /bin/false sshd
6. create host_key:
# 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 ""
7. create script then start it:
#vi /etc/rc2.d/S98sshd addition following line:
-----------------------------------------------------------------------------------
#!/bin/sh
pid=`/usr/bin/ps -e | /usr/bin/grep sshd | /usr/bin/sed -e "s/^ *//" -e "s/ .*//"`
case $1 in
"start")
/usr/local/sbin/sshd
"stop")
if [ "${pid}" != "" ]
then
/usr/bin/kill ${pid}
fi
*)
echo "usage: /etc/init.d/sshd {start|stop}"
esac
--------------------------------------------------------------------------
#chown root:sys /etc/rc2.d/S98sshd
#chmod 755 /etc/rc2.d/S98sshd
#/etc/rc2.d/S98sshd start
=====================================
如果安装第六步时出现以下提示信息,ssh无法安装成功,则按照以下步骤安装:
bash-2.03# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
PRNG is not seeded
(“PRNG”:Pseudo Random Number Generator Daemon)
1、下载 prngd-0.9.25-sol8-sparc-local.gz
# gzip -d prngd-0.9.25-sol8-sparc-local.gz
# pkgadd -d prngd-0.9.25-sol8-sparc-local
# mkdir /var/spool/prngd
# egc.pl /var/run/egd-pool get
# /usr/local/sbin/prngd /var/spool/prngd/pool
execute by root !!
然后再启动ssh服务 。
8. ssh usage:
repeat the step 1-6 at server & clIEnt.
8.1 secure telnet connect from solaris to solaris
#ssh 10.199.3.70 (username is current local user)
#ssh oracle@10.199.3.70
8.2 secure telnet connect from window to solaris
i. install SecureCRT at window
ii. create a new connect use Protocal=ssh1, Cipher=3DES
iii. or create a new connect use Protocal=ssh2
8.3 secure ftp connect from solaris to solaris
#sftp 10.199.3.44
#sftp ftpuser@10.199.3.44
推荐阅读
- eEye发警告 QuickTime有新漏洞
- Atheros和QuickLogic联手整合WLAN连接
- QuickHDR批量将JPG图片转为PNG图片的方法步骤
- QuickHDR批量更改图片名称的方法
- pptx中quicktime不可用