AIX 5.3安装SSH .
原文:http://blog.csdn.net/chunhua_love/article/details/12004845
环境:
OS:AIX 5.3
SSH: openssl-0.9.8.1302.tar.Z + openssh_5.4p1.tar.z
openssl下载路径:https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl&lang=en_US
openssh下载路径:http://sourceforge.net/projects/openssh-aix/files/
步骤:
1、上传openssl-0.9.8.1302.tar.Z + openssh_5.4p1.tar.z到目标服务器上,解压两个软件包
解压方法:
#方法一
uncompress openssl-0.9.8.1302.tar.Z
tar -xvf openssl-0.9.8.1302.tar
#方法二
zcat openssl-0.9.8.1302.tar.Z | tar -xvf -
bash-3.2# ls
openssl.base openssl.license openssl.man.en_US
2、使用smit命令安装openssl
bash-3.2# smit installp
---->Install Software
---->INPUT device / directory for software? 输入[.]? #注意那个".",表示安装路径在当前目录,然后Enter
----> [F4] #列出安装路径下要安装软件清单,ESC+7分别选中3个软件,Enter确认后返回上个界面
---->ACCEPT new license agreements??? 用tab键选yes,如果不选择会安装失败并提示openssl.base需要license
执行完上述命令后,两次Enter后就会自动安装所选择的软件
验证openssl是否安装成功
bash-3.2# lslpp -l |grep openssl 出现下面信息说明openssl安装成功
openssl.base 0.9.8.1302 COMMITTED Open Secure Socket Layer
openssl.license 0.9.8.1302 COMMITTED Open Secure Socket License
openssl.man.en_US 0.9.8.1302 COMMITTED Open Secure Socket Layer
openssl.base 0.9.8.1302 COMMITTED Open Secure Socket Layer
3、安装openssh,步骤和安装openssl一样
bash-3.2# smit installp
#基本上和安装SSL一样。
#如果不成功的话,先安装openssh.license再安装别的。
验证openssh是否安装成功:
bash-3.2# lslpp -l |grep openssh
openssh.base.client 5.4.0.6101 COMMITTED Open Secure Shell Commands
openssh.base.server 5.4.0.6101 COMMITTED Open Secure Shell Server
openssh.license 5.4.0.6101 COMMITTED Open Secure Shell License
openssh.man.en_US 5.4.0.6101 COMMITTED Open Secure Shell
openssh.msg.en_US 5.4.0.6101 COMMITTED Open Secure Shell Messages -
openssh.base.client 5.4.0.6101 COMMITTED Open Secure Shell Commands
openssh.base.server 5.4.0.6101 COMMITTED Open Secure Shell Server
4、手动启动sshd,查看sshd状态(正常情况下,安装完成后,系统自动启动sshd)
如果需要手动启停sshd,则:
#startsrc -s sshd
#stopsrc -s sshd
查看sshd状态用下面命令
# lssrc -s sshd
Subsystem Group PID Status
sshd ssh 6684742 active
或者
bash-3.2# ps -ef |grep ssh
root 2748580 2560114 0 19:23:27 pts/0 0:00 grep ssh
root 2781204 319720 0 19:23:14 - 0:00 /usr/sbin/sshd
停用telnet/ftp
stopsrc –t telnet
stopsrc –t ftp
启用telnet/ftp
startsrc –t telnet
startsrc –t ftp
附录:
openssl+openssh的安装成功的版本配合:
1、openssl.9.8.410.tar.Z http://download.csdn.net/source/414507
openssh-4.5p1-r2.tar.Z 由于上传限制分成了2个包
part1http://download.csdn.net/source/414640
part2http://download.csdn.net/source/416190
2、需要如下四个包
一个ssh包:
openssh_4.3p2_53.tar.Z
三个ssl包:
openssl-doc-0.9.7g-1.aix5.1.ppc.rpm
openssl-devel-0.9.7g-1.aix5.1.ppc.rpm
openssl-0.9.7g-1.aix5.1.ppc.rpm
3、openssl.0.9.8.602.tar.Z + openssh-4.7_new5302.tar.z
4、openssl.0.9.8.1100.tar.Z + openssh_5.2p1_aix53.tar.Z