扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
1. check solarispatch: 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 telnetconnect 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 windowto 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 ftpconnect from solaris to solaris
#sftp 10.199.3.44
#sftp ftpuser@10.199.3.44
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者