From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1885ad380923f501 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-02-25 12:06:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsflash.concordia.ca!not-for-mail From: Sylvain Robitaille Newsgroups: comp.unix.tru64 Subject: Re: ssh whith tcp wrapper Date: 25 Feb 2003 20:06:07 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: NNTP-Posting-Host: alcor.concordia.ca NNTP-Posting-User: syl User-Agent: slrn/0.9.7.4 (OSF1) Xref: archiver1.google.com comp.unix.tru64:9631 Giovanni Caramia wrote: > I have deleted the line in inetd.conf. Sshd is now running as a > standalone daemon and it works, but if in hosts.deny file there is > "ALL: ALL" instead of "#ALL: ALL" I receive always the same message: > > ssh_exchange_identification: Connection closed by remote host Yes, of course. Hosts.deny defines what connections will be denied, and you're defining that all connections should, by default, be denied. This is good, and you want to keep that. Now, for Ssh to work, you'll need to have an sshd entry in hosts.allow, (check this, I have Tcp_Wrappers configured so I need maintain only the hosts.allow file, and I keep "deny" entries there as well, so the syntax I use may be different than the syntax you need to use): sshd :ALL@localhost \ ALL@.domain.com You want to refer to the hosts_access(5) and perhaps hosts_options(5) manual pages for additional information. I hope that helps... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------