在AIX上安装ssh

由于没有办法在AIX 5.2上使用smitty install_all openssh,因为安装完后调用ssh命令出现error,只有在一台当年已经安装了ssh的机器上copy过来,另外由于不想再/usr/local上安装这个ssh,在/tmp上安装这个ssh了。

1. 使用nfs搭桥到装有ssh的机器。
2. copy -rp /usr/local/sbin/sshd /tmp/xx/ssh/sbin
   copy -rp /usr/local/bin  /tmp/xx/ssh/
   copy -rp /usr/local/etc  /tmp/xx/ssh/
3. 创建子系统
   mkssys -s sshd -p /tmp/xx/ssh/sbin/sshd -a "-D -f /tmp/xx/ssh/etc/sshd_config" -u 0 -e /dev/console -i /dev/console -o /dev/console -R -Q -S -f 9 -n 15 -E 20 -G ssh -d -w 20 
   lssrc -S -s sshd (check it exists) 

   如果有什么改动,可以 chssys -s sshd -a "-D -f /tmp/xx/ssh/etc/sshd_config"

4. 由于系统没有sshd用户,所以启动时候有些错误,可以增加sshd用户,或者在sshd_config中将
UsePrivilegeSeparation no 

和修改key的路径
HostKey /tmp/xx/ssh/etc/ssh_host_rsa_key
HostKey /tmp/xx/ssh/etc/ssh_host_dsa_key
HostKey /tmp/xx/ssh/etc/ssh_host_ecdsa_key

5. 启动sshd,startsrc -g ssh
参考
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=249556
http://daning.iteye.com/blog/166186
http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/sshd-daemon-does-not-start-during-boot-1524597
http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/how-to-restart-ssh-in-aix-1551784
http://www.unixguide.net/sun/ssh_installation.shtml

转载于:https://my.oschina.net/l1z2g9/blog/60384

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值