* ssh whith tcp wrapper
@ 2003-02-24 7:29 Giovanni Caramia
2003-02-24 14:48 ` Sylvain Robitaille
0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Caramia @ 2003-02-24 7:29 UTC (permalink / raw)
I have installed ssh 3.2.3 configuring with '--with-libwrap' option, but
even if in hosts.deny file there is "#ALL: ALL" when I try to connect from
another computer, whith IP address 123.456.78.9, the message I receive is:
ssh_exchange_identification: Connection closed by remote host
I hosts.allow file there is 'sshd2: 123.456.78.9'.
I am using OSF1 V5.0 1094 alpha.
I /etc/services I have declared
ssh2 22/tcp
ssh2 22/udp
I have modified /etc/inetd.conf writing
ssh2 stream tcp nowait root /usr/sbin/tcpd sshd2
After this I have done "kill -HUP inetd_PID".
The sshd2 executable has been copied from /usr/local/sbin in /usr/sbin. I
have no results typing tcpdchk and when I do "sshd-check-conf
USER@123.456.78.9"
I receive
Logins from 123.456.78.9 allowed
Logins by user USER allowed
Looking /var/adm/syslog.dated/current/auth.log whith 'tail -f' I see
sshd2[12345]: FATAL ERROR: Creating listener failed: port 22 probably
already in use!
But I do not have other programs using port 22.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh whith tcp wrapper
2003-02-24 7:29 ssh whith tcp wrapper Giovanni Caramia
@ 2003-02-24 14:48 ` Sylvain Robitaille
2003-02-25 15:13 ` Giovanni Caramia
0 siblings, 1 reply; 4+ messages in thread
From: Sylvain Robitaille @ 2003-02-24 14:48 UTC (permalink / raw)
Giovanni Caramia wrote:
> I have modified /etc/inetd.conf writing
>
> ssh2 stream tcp nowait root /usr/sbin/tcpd sshd2
> ...
> sshd2[12345]: FATAL ERROR: Creating listener failed: port 22 probably
> already in use!
Sshd normally expects to run as a standalone daemon (you can still use
Tcp_Wrappers with it that way). You'll either need to give it an option
to run it from inetd (-i) or take the line out of inetd.conf and run
sshd as a standalone daemon.
I hope that helps...
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh whith tcp wrapper
2003-02-24 14:48 ` Sylvain Robitaille
@ 2003-02-25 15:13 ` Giovanni Caramia
2003-02-25 20:06 ` Sylvain Robitaille
0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Caramia @ 2003-02-25 15:13 UTC (permalink / raw)
Sylvain Robitaille wrote:
>
> Sshd normally expects to run as a standalone daemon (you can still use
> Tcp_Wrappers with it that way). You'll either need to give it an option
> to run it from inetd (-i) or take the line out of inetd.conf and run
> sshd as a standalone daemon.
>
> I hope that helps...
>
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
Thanks in advance
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh whith tcp wrapper
2003-02-25 15:13 ` Giovanni Caramia
@ 2003-02-25 20:06 ` Sylvain Robitaille
0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Robitaille @ 2003-02-25 20:06 UTC (permalink / raw)
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
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-25 20:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 7:29 ssh whith tcp wrapper Giovanni Caramia
2003-02-24 14:48 ` Sylvain Robitaille
2003-02-25 15:13 ` Giovanni Caramia
2003-02-25 20:06 ` Sylvain Robitaille
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox