免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5433 | 回复: 2
打印 上一主题 下一主题

[安装配置] 在Aix6.1上安装最新的OpenSSH(5.8),要怎么操作呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-29 20:52 |只看该作者 |倒序浏览
由于版本较低的Openssh存在一些漏洞,一些漏洞扫描器会报搞风险,需要对服务器做加固。

现成的installp包都是版本较低的。

想着在Aix下装一个GCC自己编辑,但没想到装GCC都非常麻烦。请问有什么办法呢?

论坛徽章:
12
技术图书徽章
日期:2014-07-11 16:27:5215-16赛季CBA联赛之山西
日期:2016-01-08 16:10:11操作系统版块每日发帖之星
日期:2015-08-01 06:20:002015亚冠之武里南联
日期:2015-06-11 01:12:162015年亚洲杯之阿联酋
日期:2015-03-20 11:41:462015年亚洲杯纪念徽章
日期:2015-03-18 18:08:422015年辞旧岁徽章
日期:2015-03-03 16:54:15丑牛
日期:2015-01-10 22:23:32天秤座
日期:2014-08-20 15:53:35水瓶座
日期:2014-08-11 12:08:51午马
日期:2014-07-23 23:03:38IT运维版块每日发帖之星
日期:2016-02-18 06:20:00
2 [报告]
发表于 2011-08-31 09:26 |只看该作者
IBM上有现成的GCC 4.2的RPM,安装不麻烦。 rpm -ivh 就行。
http://www-03.ibm.com/systems/po ... /toolbox/alpha.html

用IBM的 XLC 编译器也可以。

自己编译也没有什么问题。先编OpenSSL,然后再编OpenSSH就行了。

论坛徽章:
1
巨蟹座
日期:2014-09-15 14:33:54
3 [报告]
发表于 2011-09-01 15:53 |只看该作者
Note on AIX5.1, only need install zlib-1.1.4-4.aix5.1.ppc.rpm

Step #4 - Install OpenSSH
=================================================
bash-2.05b# gunzip openssh-4.1p1_51.tar.z
bash-2.05b# tar xf openssh-4.1p1_51.tar
bash-2.05b# inutoc ./
bash-2.05b# installp -aYF -d ./ openssh

Step #5 - Create user sshd
=================================================
bash-2.05b# mkdir /var/empty
bash-2.05b# mkuser id=74 home=/var/empty/sshd login=false sshd

Note the user ID doesn't have to be 74, but below 100 differentiates it from normal users.

Step #6 - Start OpenSSH
=================================================
bash-2.05b# /usr/sbin/sshd

Step #7 - Define the "sshd" subsystem used by SRC and set start automagically every time you boot your machine
Define the "sshd" subsystem:
bash-2.05b# mkssys -s sshd -p /usr/sbin/sshd -a -D -u 0 -S -n 15 -f 9 -G tcpip

Start the "sshd" subsystem:
bash-2.05b# startsrc -s sshd

Stop the "sshd" subsystem:
bash-2.05b# stopsrc -s sshd

Restart the "sshd" subsystem:
bash-2.05b# refresh -s sshd
0513-005 The Subsystem, sshd, only supports signal communication.
Note this is normal. Use "stopsrc -s sshd; startsrc -s sshd" instead

Set start automagically every time you boot your machine:
Edit /etc/rc.tcpip, adding
# Start up sshd
start /usr/sbin/sshd "$src_running"

And then reboot machine, the "sshd" subsystem will be started automatically.

Step #8 - Remove the "sshd" subsystem used by SRC
Remove the "sshd" subsystem:
bash-2.05b# rmssys -s sshd
=================================================
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP