Phil,
If I remember right, tcpwrappers has to be compiled with ssh. You can't just
enter sshd into an inetd process. It will not spawn.
Phil Hurvitz wrote:
> I'm interested in using ssh with tcp wrappers. I've successfully compiled
> tcp wrappers and configured, confirmed that services like finger and
> telnet are using the wrappers. I recompiled ssh1 & 2, verified ssh1
> compatibility, but I'm now stumped.
>
> My question is: do I then kill the normally running sshd process
> (originally set to start with /etc/init.d), and run sshd as an inetd
> process?
>
> Here's my line from inetd.conf:
>
> ssh stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/sshd
>
> and my test hosts.allow file (call my machine "myhost")
>
> ssh: myhost
>
> But I get this:
>
> server# ./tcpdchk
> warning: /etc/hosts.allow, line 1: ssh: no such process name in
> /etc/inet/inetd.conf
>
> and
>
> myhost# ssh highlead
> FATAL: Connecting to highlead failed: Connection Refused
>
> -P.
>
> ******************************************************************************
> Phil Hurvitz, MFR | GIS Specialist | College of Forest Resources | 355 Bloedel
> Box 352100 | University of Washington, Seattle, Washington 98195-2100, USA
> tel: 206.685.8179 | FAX: 206.685.3091 | e-mail: [EMAIL PROTECTED]
> WWW: http://lobo.cfr.washington.edu/phurvitz/
> ******************************************************************************