3.tcl.rte 8.4.16.0 # Tcl 8.4.16
pware53.texinfo.rte 4.11.0.0 # GNU texinfo 4.11
pware53.tk.rte 8.4.16.0 # Tk 8.4.16
pware53.unixODBC.rte 2.2.12.0 # unixODBC 2.2.12
pware53.unzip.rte 5.52.0.0 # unzip 5.52
pware53.wget.rte 1.11.2.0 # GNU wget 1.11.2
pware53.zip.rte 2.32.0.0 # zip 2.32
pware53.zlib.rte 1.2.3.0 # zlib 1.2.3
(只用ssh的话选择一下就好了,不过我贪多,那些工具都想要...)
=================================================================
配置ssh
su -
cd /opt/pware/etc
cp sshd_config.default sshd_config
cp ssh_config.default ssh_config
作必要的修改(如sshd_config 里PermitRootLogin no)
ssh-keygen -d -f /opt/pware/etc/ssh_host_dsa_key -N ""
ssh-keygen -b 1024 -f /opt/pware/etc/ssh_host_rsa_key -t rsa -N ""
useradd sshd
mkdir /var/empty
chmod 700 /var/empty
cp ssh_host_rsa_key ssh_host_key
cp ssh_host_rsa_key.pub ssh_host_key.pub
==========================
制作ssh启动脚本:
[root]#vi /etc/init.sshd
#! /bin/sh
#
# start/stop the secure shell daemon
case "$1" in
'start')
# Start the sshd daemon
if [ -f /opt/pware/sbin/sshd ]; then
echo "starting SSH
D daemon"
/opt/pware/sbin/sshd &;
fi
;;
'stop')
# Stop the ssh deamon
PID=`/usr/bin/ps -ef |/usr/bin/grep sshd |/usr/bin/grep " 1 "|/usr/bin/grep -v @ |grep -v
grep|/usr/bin/awk '{print $2}'`
if [ ! -z "$PID" ] ; then
/usr/bin/kill ${PID} >/dev/null 2>&;1
fi
;;
*)
echo "usage: /etc/init.sshd {start|stop}"
;;
esac
================================
chmod +x /etc/init.sshd
ln -s /etc/init.sshd /etc/rc.d/rc2.d/S98sshd
ln -s /etc/init.sshd /etc/rc.d/rc2.d/K18sshd
启动sshd: /etc/init.sshd start
停止sshd: /etc/init.sshd stop
=================================
在/etc/inetd.conf 中注释掉telnet以及shell、login、exec等r系列的服务
stopsrc -s inetd
startsrc -s