科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网安全频道Quick_Instaling_OpenSSH_for_Solaris 8.0_method-1

Quick_Instaling_OpenSSH_for_Solaris 8.0_method-1

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

作者:巧巧读书 来源:巧巧读书 2008年6月12日

关键字: ssh OpenSSH

  • 评论
  • 分享微博
  • 分享邮件

  1. check solarispatch: if the system no have 112438-01, Must be install patch first.

  #unzip 112438-03.zip

  #patchadd 112438-03

  2. unzip package:

  # gunzip openssh-3.8.1p1-sol8-sparc-local.gz

  # gunzip openssl-0.9.7d-sol8-sparc-local.gz

  # gunzip zlib-1.2.1-sol8-sparc-local.gz

  # gunzip libgcc-3.3-sol8-sparc-local.gz (if you don't already have gcc 3.3.2 installed)

  3. install package by root :

  # pkgadd -d openssh-3.8.1p1-sol8-sparc-local

  # pkgadd -d openssl-0.9.7d-sol8-sparc-local

  # pkgadd -d zlib-1.2.1-sol8-sparc-local

  # pkgadd -d libgcc-3.3-sol8-sparc-local (if you don't already have gcc 3.3.2 installed)

  4. vi /etc/profile addition following line:

  LD_LIBRARY_PATH=:/usr/local/lib:/usr/local/ssl/lib:/usr/openwin/lib

  PATH=$PATH:/usr/local/bin:/usr/local/sbin

  export PATH LD_LIBRARY_PATH

  #. /etc/profile

  5. add user:

  # 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

  6. create host_key:

  # 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 ""

  7. create script then start it:

  #vi /etc/rc2.d/S98sshd addition following line:

  -----------------------------------------------------------------------------------

  #!/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:sys /etc/rc2.d/S98sshd

  #chmod 755 /etc/rc2.d/S98sshd

  #/etc/rc2.d/S98sshd start

  =====================================

  如果安装第六步时出现以下提示信息,ssh无法安装成功,则按照以下步骤安装:

  bash-2.03# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""

  PRNG is not seeded

  (“PRNG”:Pseudo Random Number Generator Daemon)

  1、下载 prngd-0.9.25-sol8-sparc-local.gz

  # gzip -d prngd-0.9.25-sol8-sparc-local.gz

  # pkgadd -d prngd-0.9.25-sol8-sparc-local

  # mkdir /var/spool/prngd

  # egc.pl /var/run/egd-pool get

  # /usr/local/sbin/prngd /var/spool/prngd/pool

  execute by root !!

  然后再启动ssh服务。

  8. ssh usage:

  repeat the step 1-6 at server&client.

  8.1 secure telnetconnect from solaris to solaris

  #ssh 10.199.3.70 (username is current local user)

  #ssh oracle@10.199.3.70

  8.2 secure telnet connect from windowto solaris

  i. install SecureCRT at window

  ii. create a new connect use Protocal=ssh1, Cipher=3DES

  iii. or create a new connect use Protocal=ssh2

  8.3 secure ftpconnect from solaris to solaris

  #sftp 10.199.3.44

  #sftp ftpuser@10.199.3.44

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章