现在的位置: 首页 > 综合 > 正文

AIX上安装OpenSSH

2013年08月24日 ⁄ 综合 ⁄ 共 2036字 ⁄ 字号 评论关闭

 

1、软件下载:
 
以上两个软件包均为installp格式,只能在5.2/5.3/6.1上安装。跟早期的aix版本(比如:4.3/5.1)的openssl为RPM格式不同。
 
2、安装步骤
 
1)把安装包ftp到目标主机
AIX53:/tmp/openssl#ls -l
total 13064
-rw-r-----   1 root     system      6684195 Aug 12 16:52 openssl.9.8.602.tar.Z
AIX53:/tmp/openssl#cd ../openssh
AIX53:/tmp/openssh#ls -l
total 10096
-rw-r-----   1 root     system      5168111 Aug 12 16:52 openssh-4.7_new5302.tar.z

 
2)解压
AIX53:/tmp/openssl#uncompress openssl.9.8.602.tar.Z
AIX53:/tmp/openssl#tar xvf openssl.9.8.602.tar
AIX53:/tmp/openssh#gunzip openssh-4.7_new5302.tar.z
AIX53:/tmp/openssh#tar xvf openssh-4.7_new5302.tar

 
3)安装
必须先安装openssl,然后再安装openssh。
 
安装openssl:
geninstall -I "a -cgNQqwXY -J" -Z -d /tmp/openssl -f File 2>&1
 
安装成功后的提示:
 
安装openssh:
geninstall -I "a -cgNQqwXY -J" -Z -d /tmp/openssh -f File 2>&1
 
安装成功后的提示:
 
当然,也可以使用smit install来安装。
 
3、运行ssh服务
 
默认安装好后系统自动启用ssh服务:
AIX53:/#lssrc -a | grep ssh
 sshd             ssh              979088       active
 
如果是inactive,可通过以下命令启动ssh服务:
 
AIX53:/#startsrc -s sshd
 
停止ssh服务:
AIX53:/#stopsrc -s sshd
 
4、管理
 
sshd命令位于/usr/sbin目录
 
配置文件位于/etc/ssh目录:
 
AIX53:/#ls -l /etc/ssh
total 336
-rw-------   1 root     system       132839 Aug 12 16:33 moduli
-rw-r--r--   1 root     system         1482 Aug 12 16:33 ssh_config
-rw-------   1 root     system          668 Aug 12 16:33 ssh_host_dsa_key
-rw-r--r--   1 root     system          590 Aug 12 16:33 ssh_host_dsa_key.pub
-rw-------   1 root     system          963 Aug 12 16:33 ssh_host_key
-rw-r--r--   1 root     system          627 Aug 12 16:33 ssh_host_key.pub
-rw-------   1 root     system         1675 Aug 12 16:33 ssh_host_rsa_key
-rw-r--r--   1 root     system          382 Aug 12 16:33 ssh_host_rsa_key.pub
-rw-r--r--   1 root     system         2341 Aug 12 16:33 ssh_prng_cmds
-rw-r--r--   1 root     system         3219 Aug 12 16:33 sshd_config
 
不管什么时候调整了/etc/ssh/sshd.config文件,ssh都需要停掉并重新启动。
 
 

openssh下载:

 

抱歉!评论已关闭.