From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Markus Waldorf Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: OpenSSL 3.5p1 - Tru64 v5.1 Date: Tue, 07 Jan 2003 16:10:19 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: 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 1041952236 20717 80.91.224.249 (7 Jan 2003 15:10:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 15:10:36 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18VvNC-0005Nh-00 for ; Tue, 07 Jan 2003 16:10:34 +0100 Original-Received: (qmail 4578 invoked by uid 5); 7 Jan 2003 15:11:26 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4569 invoked by uid 49493); 7 Jan 2003 15:11:26 -0000 Original-Received: from waldorfm@rferl.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.0/5.0):. Processed in 0.44948 secs); 07 Jan 2003 15:11:26 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 7 Jan 2003 15:11:25 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H8C00L0QNIZGS@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Jan 2003 10:11:25 -0500 (EST) Original-Received: from rferl.org (marconi.rferl.org [194.228.91.18]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H8C00FCXNHEBC@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Jan 2003 10:11:20 -0500 (EST) Original-Received: from prglnmail02.ad.rferl.org (172.16.42.42) by rferl.org with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Tue, 07 Jan 2003 16:10:24 +0100 Original-Received: from [172.16.8.25] ([172.16.8.25]) by prglnmail02.ad.rferl.org (Lotus Domino Release 5.0.11) with ESMTP id 2003010716102246:12959 ; Tue, 07 Jan 2003 16:10:22 +0100 Original-To: tru64-unix-managers@ornl.gov X-MIMETrack: Itemize by SMTP Server on PRGLNMail02/CZ/RFERL(Release 5.0.11 |July 24, 2002) at 01/07/2003 04:10:22 PM, Serialize by Router on PRGLNMail02/CZ/RFERL(Release 5.0.11 |July 24, 2002) at 01/07/2003 04:10:23 PM, Serialize complete at 01/07/2003 04:10:23 PM User-Agent: Microsoft-Entourage/10.1.0.2006 Xref: main.gmane.org gmane.os.tru64.managers:2866 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2866 Thanks to everyone who replied! I would say the installation of OpenSSH is really not as trivial as I thought, and the installation instructions provided with the product distribution should be checked. Installed OpenSSL 0.9.7 Installed Zlib The source code compiled and installed without problems, using the defaults. openssl gets installed in /usr/local/ssl and zlib in /usr/local/ Tru64 Enhanced Security (shadow passwords): If this is enabled, then Privilege Separation does not work. Some say it works with basic security, some say it does not work at all under Tru64. Well, I'm not going to disable shadow passwords and compromise general system security just for ssh. So, prior to compiling openssh 3.5p1 under Tru64 it is necessary to disable Privilege Separation, at least when using enhanced system security. Edit sshd_config in the source dir and add a line: #UsePrivilegeSeparation yes UsePrivilegeSeparation no So I'm ending up with the following: (priv separate is disabled in sshd_conf file) ./configure \ --with-cppflags=-I/usr/local/include \ --with-ipv4-default \ --disable-suid-ssh \ --with-ldflags='-s' \ make clean make make install I not able yet to configure/compile it with tcp_wrapper support. The system is using tcp-wrapper 7.6 (alpha rpm distribution). I've received on interesting reply about this: "It's better to start sshd as a standalone daemon. If you do run it from inetd you need to give it the -i option." "If you're running it from inetd you don't need to build in libwrap support since tcpd takes care of that. Compiling with tcp-wrappers is only necessary for the standalone daemon." With the above qualifiers openssh 3.5p1 compliled and installed without any errors under 5.1 pk5. For some reason however I always receive error: ssh_exchange_identification: Connection closed by remote host when sshd daemon is started from inetd, with or without tcp_wrapper. If I start sshd daemon manually it seems to work ok. I'm going to search for a startup script that I can put in /sbin/init. Thanks and best regards, Markus Waldorf Radio Free Europe/Radio Liberty, Inc. Prague, Czech Repbulic Below some more details. Problems and solutions: While trying to setup OpenSSH 3.5p1 I ran into the following problems: ./configure make Cannot find file "zlib.h" To correct this problem it seems necessary to do ./configure --with-cppflags=-I/usr/local/include ok. ./configure --with-tcp-wrapper The configuration report however shows "TCP Wrappers support: no" ./configure --with-tcp-wrappers=/usr/local/etc/tcpd checking for libwrap... configure: error: *** libwrap missing To correct this problem it seems necessary to do ./configure --with-ldflags=-l/usr/local/lib configure: error: *** zlib missing I've tried all suggestions including other parameters and using compile flags, but none of them worked sucessfully. vi /etc/inetd.conf ssh stream tcp nowait root /usr/local/etc/tcpd /usr/local/sbin/sshd -i -f /usr/local/etc/sshd_config --> receiving ssh_exchange_identification: Connection closed by remote host ssh stream tcp nowait root /usr/local/sbin/sshd -i -f /usr/local/etc/sshd_config sshd --> receiving ssh_exchange_identification: Connection closed by remote host removed ssh from inetd.conf started it manually with /usr/local/sbin/sshd -f /usr/local/etc/sshd_config bingo!