From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rezk Mekhael Newsgroups: gmane.os.tru64.managers Subject: summery for OpenSSl and OpenSSh / How to Install Secure Shell Ftp/Telnet Step By Step for Tru64 Date: Tue, 15 Jul 2003 10:13:54 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <00a801c34af4$78ae7280$96c46bc7@clunetnt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1058289204 2574 80.91.224.249 (15 Jul 2003 17:13:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2003 17:13:24 +0000 (UTC) Cc: "Mccubbin@Clunet. Edu" , Micheal Graham Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jul 15 19:13:23 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19cTMg-0000fL-00 for ; Tue, 15 Jul 2003 19:13:22 +0200 Original-Received: (qmail 18129 invoked by uid 5); 15 Jul 2003 17:14:10 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18120 invoked by uid 49493); 15 Jul 2003 17:14:10 -0000 Original-Received: from rezk@clunet.edu by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.0/5.0):. Processed in 0.460831 secs); 15 Jul 2003 17:14:10 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 15 Jul 2003 17:14:09 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI2006P1T7EAE@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 15 Jul 2003 13:14:09 -0400 (EDT) Original-Received: from clunet.edu (robles.callutheran.edu [199.107.192.11]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI2008CBT778O@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 15 Jul 2003 13:13:59 -0400 (EDT) Original-Received: from laptop3 by clunet.edu (8.9.3/1.1.29.3/14May03-1207PM) id KAA0000199357; Tue, 15 Jul 2003 10:11:39 -0700 (PDT) Original-To: "Tru64 Group \(Tru64 Group\)" X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:4850 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4850 How To Install and setup Secure Shell on Tru64 Ver 5.X 1) Download/install Openssl "you know ./configure ----> make -----> make install" Location http://www.openssl.org/source/ File Name openssl-0.9.7b.tar.gz 2) Downlaod/install Openssh "you know ./configure ----> make -----> make install" Location ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ File Name openssh-3.6.1p2.tar.gz 3) Create a home directory, group and user name "sshd" # 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 4) create start up script called ssh ----see end of the message 5) Put the script ssh in /sbin/init.d 6) Set the protection and ownership 7) chmod 755 /sbin/init.d/ssh 8) chown root:system /sbin/init.d/ssh 9) Start sshd with /sbin/init.d start 10) To start SSH on boot place a soft link in /sbin/rc3.d ln -s /sbin/init.d/ssh /sbin/rc3.d/S91ssh 11) test it the telnet #ssh -v -l "userName" localhost Script ------------------------------------------------------- #!/sbin/sh # # ***************************************************************** # * * # * Copyright (c) Digital Equipment Corporation, 1991, 1998 * # * * # * All Rights Reserved. Unpublished rights reserved under * # * the copyright laws of the United States. * # * * # * The software contained on this media is proprietary to * # * and embodies the confidential technology of Digital * # * Equipment Corporation. Possession, use, duplication or * # * dissemination of the software and media is authorized only * # * pursuant to a valid written license from Digital Equipment * # * Corporation. * # * * # * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * # * by the U.S. Government is subject to restrictions as set * # * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * # * or in FAR 52.227-19, as applicable. * # * * # ***************************************************************** # # HISTORY # # # (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. # ALL RIGHTS RESERVED # # # OSF/1 Release 1.0 # Control the ssh daemon # PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH Pid=`/sbin/init.d/bin/getpid /usr/local/sbin/sshd -uroot` case "$1" in 'start') set `who -r` if [ $9 = "S" ]; then if [ -x /usr/local/sbin/sshd ]; then /usr/local/sbin/sshd -f /usr/local/etc/sshd_config echo "ssh service started" fi fi ;; 'stop') if [ "X$Pid" != "X" ] then # # NOTE: The first kill allows any daemons to exit gracefully. # The second kill (-9) gets any that refused to die. # /bin/ps -e |grep /usr/local/sbin/sshd |grep -v grep |awk '{print $1}' |xargs kill sleep 5 /bin/ps -e |grep /usr/local/sbin/sshd |grep -v grep |awk '{print $1}' |xargs kill -9 fi ;; *) echo "usage: $0 {start|stop}" ;; esac --- Sincerely, Rezk Mekhael