Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327693
  • 博文数量: 81
  • 博客积分: 2107
  • 博客等级: 大尉
  • 技术积分: 742
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-30 09:38
文章分类

全部博文(81)

文章存档

2011年(2)

2010年(28)

2009年(45)

2008年(6)

我的朋友

分类:

2009-08-27 13:13:00

1、软件下载:
openssl(9.8.602):
openssh(4.7_new5302):
 
以上两个软件包均为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都需要停掉并重新启动。
 
openssl IBM官方网站下载:#
 
openssh下载:
阅读(2350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~