Re: can passwordless SSH work without DNS ?

From: Neil W Rickert (rickert+nn@cs.niu.edu)
Date: 02/28/02


From: Neil W Rickert <rickert+nn@cs.niu.edu>
Date: 28 Feb 2002 20:09:11 GMT

nzanella@cs.mun.ca (Neil Zanella) writes:

>Neil W Rickert <rickert+nn@cs.niu.edu> wrote in message news:<a5jrp2$eah$1@husk.cso.niu.edu>...
>> nzanella@cs.mun.ca (Neil Zanella) writes:

>> >Thanks for your feedback.
>> >I tried placing the lines
>> >HostbasedAuthentication no
>> >RhostsRSAAuthentication no
>> >in my ~/.ssh/config file but that did not solve my problem.
>> >I think that perhaps the same lines must be configured on the
>> >server for this to work but I do not have root access to it.
>> >The error message I get when trying to connect is always:
>> >ssh_exchange_identification: Connection closed by remote host

>> One possibility is that the server is using tcp-wrappers
>> restrictions.

>I doubt that the server would be denying service to my computer in particular
>since the one next door with a similar IP and DNS connects fine via ssh.

An abrupt closing of the connection is a signature of tcp-wrappers.
If compiled in FASCIST mode (the default), it will do this if
gethostbyaddr() succeeds, but the gethostbyname() on the resulting
name does not match.

If it is not tcp-wrappers, I would expect a more gentle failure mode,
with more informative output from "ssh -v".

Best would be to examine the logs on the server.



Relevant Pages

  • Re: How to get server name from server IP???
    ... Internet to find that out. ... If you have a DNS server on your local network ... gethostbyaddr() should be able to use it. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: How to get server name from server IP???
    ... server to the Router IP or the server IP, or any windows IP in the network. ... gethostbyaddr() does return NetBIOS host name. ... users usually want to use the symbolic hostname, ...
    (microsoft.public.windowsce.embedded.vc)
  • Client/Server app under unix
    ... I am trying to make a simple client/server aplication under unix. ... Connection to the server via telnet ... struct hostent *host; ... I tried using gethostByAddr for 127.0.0.1 and it also failed. ...
    (comp.lang.c)
  • Connect method fails
    ... I am trying to make a simple client/server aplication under unix. ... Connection to the server via telnet ... struct hostent *host; ... I tried using gethostByAddr for 127.0.0.1 and it also failed. ...
    (comp.unix.programmer)
  • gethostbyaddr doing a A query
    ... I am curious to know the reason for behaviour of gethostbyaddr which i ... when client x3 connects to server x1, ...
    (comp.unix.programmer)