From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: emanuele.lombardi@casaccia.enea.it Newsgroups: gmane.os.tru64.managers Subject: SSH Secure Shell Tru64 UNIX 3.2.0 and TCP_WRAPPERS Date: Thu, 13 Mar 2003 18:06:41 +0100 (CET) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200303131706.h2DH6fx41333532@tintoretto.casaccia.enea.it> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: main.gmane.org 1047575196 31646 80.91.224.249 (13 Mar 2003 17:06:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2003 17:06:36 +0000 (UTC) Cc: emanuele.lombardi@casaccia.enea.it Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Mar 13 18:06:29 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18tWA1-0008DT-00 for ; Thu, 13 Mar 2003 18:06:29 +0100 Original-Received: (qmail 30564 invoked by uid 5); 13 Mar 2003 17:07:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30551 invoked by uid 49493); 13 Mar 2003 17:07:03 -0000 Original-Received: from emanuele.lombardi@casaccia.enea.it by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(1.8/5.0):. Processed in 0.597027 secs); 13 Mar 2003 17:07:03 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 13 Mar 2003 17:07:02 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HBP00AGE67JAS@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 13 Mar 2003 12:07:00 -0500 (EST) Original-Received: from tintoretto.casaccia.enea.it (tintoretto.casaccia.enea.it [192.107.75.41]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HBP005KH67CI7@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 13 Mar 2003 12:06:50 -0500 (EST) Original-Received: from leonardo.casaccia.enea.it (leonardo.casaccia.enea.it [192.107.75.49]) by tintoretto.casaccia.enea.it (8.12.8/8.12.8) with ESMTP id h2DH6fx41333532; Thu, 13 Mar 2003 18:06:45 +0100 (CET) Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:3631 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3631 Dear alphists, I have just learned (thanks to Jay Leafey) that it is better to start ssh at boot time using /sbin/init.d/S34sshd rather than let inetd to do the job. Given the nature of ssh, I would be inclined to comment out the line in inetd.conf. Using the inetd method has some shortcomings, particularly the long start-up time. sshd has to do a bit of cryptographic housekeeping at start-up that can cause an unpleasant delay for incoming connections. But now I have a problem related to tcp_wrapper (which I do use) and how to let sshd use /etc/hosts.allow and /etc/hosts.deny I know I could place the allowed and denied host names in /etc/ssh2/sshd2_config, but I would prefere to use the usual tcp_wrapper hosts.allow and hosts.deny files to have a single place where store such kind of info. from the man pages of sshd I read as follows: SSH WITH TCP WRAPPERS When the sshd2 daemon compiles with TCP wrapper libraries, the hosts.allow and hosts.deny files control who can connect to ports forwarded by the sshd2 daemon. The names in the hosts.allow and hosts.deny files are sshd2, sshdfwd- , and sshdfwd-X11 for forwarded ports on which the Secure Shell client or server is listening. If a port has a defined name, you must use it. form the man page of sshd2_config I read: AllowHosts Follows any number of host name patterns, separated by commas. If specified, log in is allowed only if a host name matches one of the patterns. Patterns are matched using the egrep syntax (see sshre- gex(5)), or the syntax specified in the metaconfiguration section of the configuration file. If you want the pattern to match the host's IP address (ignoring the canonical host name), prefix your pattern with \i. You can also use subnet masks (e.g. , 127.0.0.0/8) by prefixing the pattern with \m. DNS is used to map the client's host name into a canonical host name. If the name cannot be mapped, the IP address is used as the host name. --> By default, all hosts are allowed to connect. The sshd2 daemon --> also can be configured to use tcp_wrappers using the --> with-libwrap compile-time configuration option. BUT I checked that "SSH Secure Shell Tru64 UNIX 3.2.0" has not been compiled with tcp_wrapper support. So my questions are: 1) Is it possible to have from HPQ ssh already tcp_wrapper-enabled ? 2) where can I get the sources to compile ssh? Of course I'd like to compile the best sources for our Tru64 machines (like SSH Secure Shell Tru64 UNIX 3.2.0) and not just anything available on the internet! Thank you very much from Italy, Emanuele -- $$$ Emanuele Lombardi $$$ mail: ENEA CLIM Casaccia $$$ I-00060 S.M. di Galeria (RM) ITALY $$$ mailto:emanuele.lombardi@casaccia.enea.it $$$ tel +39 0630483366 $$$ fax +39 0630484264 ||| $$$ \|/ ;_; $$$ What does a process need | /"\ $$$ to become a daemon ? | \v/ $$$ | | $$$ - a fork o---/!\--- $$$ | |_| $$$ | _/ \_ $$$* Contrary to popular belief, UNIX is user friendly. $$$ It's just very particular about who it makes friends with. $$$* Computers are not intelligent, but they think they are. $$$* True programmers never die, they just branch to an odd address $$$* THIS TRANSMISSION WAS MADE POSSIBLE BY 100% RECYCLED ELECTRONS