今天在AIX5.3 上安装SSH时遇到不少问题,基本上折腾了一天,把这个过程记录下来,避免以后再犯同样的错误。
 
先列出需要的软件地址:
 
openssh 的下载地址:
http://sourceforge.net/projects/openssh-aix/files/
 
openssl 的下载地址:
https://www14.software.ibm.com/webapp/iwm/web/reg/pick.do?source=aixbp
 
刚开始下载了openssh-4.7_new5302.tar.Z,openssl.0.9.8.1100.tar.Z 两个版本,安装ssl的时候正常,
# uncompress openssl.0.9.8.1100.tar.Z
# tar xvf openssl.0.9.8.1100.tar
#smitty 安装软件。
安装ssh时,安装license时也是正常的,安装base的时候就报错了,提示:
 
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
FAILURES
--------
  Filesets listed in this section failed pre-installation verification
  and will not be installed.
  Requisite Failures
 ------------------
 SELECTED FILESETS:  The following is a list of filesets that you asked to
 install.  They cannot be installed until all of their requisite filesets
 are also installed.  See subsequent lists for details of requisites.
   openssh.base.client 5.4.0.6101            # Open Secure Shell Commands
   openssh.base.server 5.4.0.6101            # Open Secure Shell Server
   openssh.msg.en_US 5.4.0.6101              # Open Secure Shell Messages -...
 MISSING REQUISITES:  The following filesets are required by one or more
 of the selected filesets listed above.  They are not currently installed
 and could not be found on the installation media.
    openssl.base 0.9.8.1300                   # Fileset Update
  << End of Failure Section >>
FILESET STATISTICS
------------------
    3  Selected to be installed, of which:
        3  FAILED pre-installation verification
  ----
    0  Total to be installed

Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level           Pre-installation Failure/Warning
-------------------------------------------------------------------------------
openssh.msg.en_US         5.4.0.6101      Requisite failure
openssh.base.server       5.4.0.6101      Requisite failure
openssh.base.client       5.4.0.6101      Requisite failure
 
# lslpp -l | grep -i ssl
  openssl.base            0.9.8.1100  COMMITTED  Open Secure Socket Layer
  openssl.license         0.9.8.1100  COMMITTED  Open Secure Socket License
  openssl.man.en_US       0.9.8.1100  COMMITTED  Open Secure Socket Layer
  openssl.base            0.9.8.1100  COMMITTED  Open Secure Socket Layer
 
# lslpp -l | grep -i ssh
  openssh.license         5.4.0.6101  COMMITTED  Open Secure Shell License
可以看到就是base包没有安装成功。 在群里发了信息后,随风舞朋友提示说缺少上面红色字体中的openssl.base 0.9.8.1300   包了。应该是我下载的2个软件不一致造成的,他建议我用用openssh_5.2p1_aix53.tar.Z和openssl.0.9.8.1100.tar.Z 这2个组合用 。
重新下载openssh_5.2p1_aix53.tar.Z 包和openssl.0.9.8.1100.tar.Z 文件一并上传到aix里,安装顺利完成, 不过安装ssh的时候,没有license可以选择的,直接选择base就可以了,也或者是之前装过低版本的ssh的License的原因吧。
安装完成后,看到ssh服务已经启动了。
# l***c -a | grep ssh
 sshd             ssh              417972       active
 
 
ssh管理部分,网上很多资料,我参考的是 http://william750214.javaeye.com/blog/617610 这个帖子。