Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > SSH在solaris上的安装
【标  题】:SSH在solaris上的安装
【关键字】:SSH,solaris
【来  源】:http://www.cublog.cn/u/12114/showart.php?id=113068

SSH在solaris上的安装

Your Ad Here

    大家都知道,Solaris9后才自带ssh服务器,而之前版本是没有的,故而如果需要,必须自己安装。

 

安装步骤如下:

一、             下载软件包:

    http://www.zlib.org/ zlib
http://www.perl.org/ perl
http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html prngd
http://www.openssl.org/ openssl
http://www.openssh.org/ openssh
http://www.lothar.com/tech/crypto/ egd
ftp://ftp.porcupine.org/pub/security/index.html tcp_wrappers

二、             打系统补丁:

对系统打112438-01补丁,可以到

http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access这里下载得到,下载后,解压缩,然后用命令:

#patchadd 112438-01

将其打入。

三、             安装各个软件包:

    # gunzip openssh-3.6.1p1-sol8-sparc-local.gz
# gunzip openssl-0.0.9.7b-sol8-sparc-local.gz
# gunzip zlib-1.1.4-sol8-sparc-local.gz
# gunzip libgcc-3.2.3-sol8-sparc-local.gz  (if you don't already have gcc 3.2.3 installed)
# gunzip tcp_wrappers-7.6-sol8-sparc-local.gz (again optional)
and optionally for the other packages.  Then run as root
# pkgadd -d openssh-3.6.1p1-sol8-sparc-local
# pkgadd -d openssl-0.0.9.7b-sol8-sparc-local
# pkgadd -d zlib-1.1.4-sol8-sparc-local
# pkgadd -d libgcc-3.2.3-sol8-sparc-local (if you don't already have gcc 3.2.3 installed)
# pkgadd -d tcp_wrappers-7.6-sol8-sparc-local (optional)
四、              Setting up the sshd user and the /var/empty directory
 # mkdir /var/empty
# chown root:sys /var/empty
# chmod 755 /var/empty
# groupadd sshd
# useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd
/var/empty should not contain any files.
五、              Installing ssh and sshd
# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""
注意:如果安装密钥时出现问题:PRNG is not seeded,则执行如下命令:
# ln -s /kernel/drv/random /dev/random
# ln -s /kernel/drv/random /dev/urandom

六、             建立启动脚本:

#vi /etc/init.d/sshd

加入下面脚本:

#!/bin/sh 
pid=`/usr/bin/ps -e | /usr/bin/grep sshd | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
case $1 in
'start')
        /usr/local/sbin/sshd
        ;;
'stop')
        if [ "${pid}" != "" ]
        then
                        /usr/bin/kill ${pid}
        fi
        ;;
*)
        echo "usage: /etc/init.d/sshd {start|stop}"
        ;;
esac 
然后再做连接:
# chown root /etc/init.d/sshd       
# chgrp sys /etc/init.d/sshd
# chmod 555 /etc/init.d/sshd
# ln -s /etc/init.d/sshd /etc/rc2.d/S98sshd
至此,sshsolaris8上已经安装完毕,启动sshd进程(# /etc/rc2.d/S98sshd start),在客户端上登陆测试是否正常,如果正常,即安装成功。
Missing charsets in String to FontSet conversion:【上一篇】
solaris基础:【下一篇】
【相关文章】
  • 在router上使用ssh
  • Solaris 10 安装及SVC管理及X及Vmware及其它可能遇到的一些问题(转贴自chinau
  • 其了怪了。。。USB flash 在Solaris 9 的 V240上
  • solaris 开始是否进入图形界面选择
  • Solaris 10 x86's menu.lst
  • solairs8 ssh的配置经历
  • 在Sun V490上Solaris 8不支持1.5GB CPU!
  • solaris网络设置基础
  • solaris常用命令及简单解释
  • ssh waiting trouble
  • 【随机文章】
  • NBMA与PTMP的区别
  • Lucene in Action (中文)
  • [Linux]kill使用某一(tcp/udp)端口的进程
  • ASP.NET 动态转静态页面的两种方法总结
  • Flash MX 2004 功能介绍(2)
  • 用ASP随机生成文件名的函数
  • 目前国内的主流程序主要存在以下问题
  • Dot net 正则表达式的应用
  • 为开发人员做的一次sql交流
  • STP与VLAN
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.