public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ssh and name resolution
@ 2002-05-30  3:25 Michael Wardle
  2002-05-30  7:47 ` AW: " gmx
  2002-05-30 19:59 ` Michael Wardle
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Wardle @ 2002-05-30  3:25 UTC (permalink / raw)
  To: cygwin

Hi

I've just installed the latest version of Cygwin I could find on my 
local mirror (2.218?), and am having some intruging problems.

The first is:
I have a local host called "meerkat" that I want to connect to via ssh.
When I issue "ssh meerkat", I get a warning:
"The authenticity of host 'meerkat(202.50.84.15)' can't be established"
Yet meerkat is a host on my local 192.168.x.x subnet.
"nslookup meerkat" returns the expected IP address in 192.168.x.x.

I can't see any obvious problem when running "ssh -v", so I suspect 
there is something odd happening with name resolution with Cygwin 
(perhaps a system call is returning a different IP than expected).

Does anybody know why I would be having this sort of name resolution 
problem?

Thanks in advance

-- 
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* AW: ssh and name resolution
  2002-05-30  3:25 ssh and name resolution Michael Wardle
@ 2002-05-30  7:47 ` gmx
  2002-05-30  8:41   ` David Starks-Browning
  2002-05-30 19:59 ` Michael Wardle
  1 sibling, 1 reply; 7+ messages in thread
From: gmx @ 2002-05-30  7:47 UTC (permalink / raw)
  To: Michael Wardle, cygwin

Hi Michael, 
mhhh, this looks possibly like a multihoming or known_hosts issue to me....
look into ~/.ssh/known_hosts and delete the entry for meerkat and try again.
what gives reverse lookup of 202.50.84.15 ???
Perhaps that ip is a ppp-ip your computer had and you were fiddling around 
whith some port-forwarding stuff and ssh some time ago and connected meerkat 
via localhost... ??
i don't think, this is cygwin issue...
regards
Roland


-----Ursprungliche Nachricht-----
Von: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]Im Auftrag
von Michael Wardle
Gesendet: Donnerstag, 30. Mai 2002 02:43
An: cygwin@cygwin.com
Betreff: ssh and name resolution


Hi

I've just installed the latest version of Cygwin I could find on my 
local mirror (2.218?), and am having some intruging problems.

The first is:
I have a local host called "meerkat" that I want to connect to via ssh.
When I issue "ssh meerkat", I get a warning:
"The authenticity of host 'meerkat(202.50.84.15)' can't be established"
Yet meerkat is a host on my local 192.168.x.x subnet.
"nslookup meerkat" returns the expected IP address in 192.168.x.x.

I can't see any obvious problem when running "ssh -v", so I suspect 
there is something odd happening with name resolution with Cygwin 
(perhaps a system call is returning a different IP than expected).

Does anybody know why I would be having this sort of name resolution 
problem?

Thanks in advance

-- 
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* AW: ssh and name resolution
  2002-05-30  7:47 ` AW: " gmx
@ 2002-05-30  8:41   ` David Starks-Browning
  0 siblings, 0 replies; 7+ messages in thread
From: David Starks-Browning @ 2002-05-30  8:41 UTC (permalink / raw)
  To: Michael Wardle; +Cc: cygwin

> I've just installed the latest version of Cygwin I could find on my 
> local mirror (2.218?), and am having some intruging problems.
> 
> The first is:
> I have a local host called "meerkat" that I want to connect to via ssh.
> When I issue "ssh meerkat", I get a warning:
> "The authenticity of host 'meerkat(202.50.84.15)' can't be established"
> Yet meerkat is a host on my local 192.168.x.x subnet.
> "nslookup meerkat" returns the expected IP address in 192.168.x.x.

I always get this when I connect to a new host for the first time.  I
don't think it has anything to do with Cygwin.  SSH does not have the
host's key in its known_hosts file (or something like that) so cannot
guarantee that it's IP address isn't being spoofed.

Regards,
David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ssh and name resolution
  2002-05-30  3:25 ssh and name resolution Michael Wardle
  2002-05-30  7:47 ` AW: " gmx
@ 2002-05-30 19:59 ` Michael Wardle
  2002-05-30 20:23   ` AW: " gmx
  2002-05-30 20:32   ` Michael Wardle
  1 sibling, 2 replies; 7+ messages in thread
From: Michael Wardle @ 2002-05-30 19:59 UTC (permalink / raw)
  To: Michael Wardle; +Cc: cygwin

Michael Wardle wrote:
> I have a local host called "meerkat" that I want to connect to via ssh.
> When I issue "ssh meerkat", I get a warning:
> "The authenticity of host 'meerkat(202.50.84.15)' can't be established"
> Yet meerkat is a host on my local 192.168.x.x subnet.
> "nslookup meerkat" returns the expected IP address in 192.168.x.x.

Thanks to all who replied so far, but you've all missed the point:
when I "ssh meerkat", I am connecting to a different host than the 
meerkat I expected.

ping meerkat gives one host (202.50.84.15)
nslookup meerkat gives another (192.168.x.x)

Is there anything special I need to do to make name resolution work as 
expected?


-- 
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* AW: ssh and name resolution
  2002-05-30 19:59 ` Michael Wardle
@ 2002-05-30 20:23   ` gmx
  2002-05-30 20:32   ` Michael Wardle
  1 sibling, 0 replies; 7+ messages in thread
From: gmx @ 2002-05-30 20:23 UTC (permalink / raw)
  To: Michael Wardle; +Cc: cygwin

search google for "nslookup ping resolve different ip"

found some hits concerning this issue,e.g.:
http://groups.google.com/groups?hl=de&lr=&threadm=mnbmtt82epbt6nssi2oeu9e9p06rl5cg0s%404ax.com&rnum=1&prev=/groups%3Fq%3Dnslookup%2B
ping%2Bresolve%2Bdifferent%2Bip%26hl%3Dde%26lr%3D%26selm3Dmnbmtt82epbt6nssi2oeu9e9p06rl5cg0s%25404ax.com%26rnum%3D1

http://groups.google.com/groups?hl=de&lr=&threadm=7ufr9d%24qno%40journal.concentric.net&rnum=2&prev=/groups%3Fq%3Dnslookup%2Bping%2B
resolve%2Bdifferent%2Bip%26hl%3Dde%26lr%3D%26selm%3D7ufr9d%2524qno2540journal.concentric.net%26rnum%3D2


again, i don't think this is an cygwin issue... ;)
someone tell me, if i'm wrong...

Hope this helps
regards
Roland



-----Ursprungliche Nachricht-----
Von: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]Im Auftrag
von Michael Wardle
Gesendet: Freitag, 31. Mai 2002 01:13
An: Michael Wardle
Cc: cygwin@cygwin.com
Betreff: Re: ssh and name resolution


Michael Wardle wrote:
> I have a local host called "meerkat" that I want to connect to via ssh.
> When I issue "ssh meerkat", I get a warning:
> "The authenticity of host 'meerkat(202.50.84.15)' can't be established"
> Yet meerkat is a host on my local 192.168.x.x subnet.
> "nslookup meerkat" returns the expected IP address in 192.168.x.x.

Thanks to all who replied so far, but you've all missed the point:
when I "ssh meerkat", I am connecting to a different host than the
meerkat I expected.

ping meerkat gives one host (202.50.84.15)
nslookup meerkat gives another (192.168.x.x)

Is there anything special I need to do to make name resolution work as
expected?


--
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ssh and name resolution
  2002-05-30 19:59 ` Michael Wardle
  2002-05-30 20:23   ` AW: " gmx
@ 2002-05-30 20:32   ` Michael Wardle
  1 sibling, 0 replies; 7+ messages in thread
From: Michael Wardle @ 2002-05-30 20:32 UTC (permalink / raw)
  To: cygwin

Michael Wardle wrote:
> Michael Wardle wrote:
> 
>> I have a local host called "meerkat" that I want to connect to via ssh.
>> When I issue "ssh meerkat", I get a warning:
>> "The authenticity of host 'meerkat(202.50.84.15)' can't be established"
>> Yet meerkat is a host on my local 192.168.x.x subnet.
>> "nslookup meerkat" returns the expected IP address in 192.168.x.x.
> 
> 
> Thanks to all who replied so far, but you've all missed the point:
> when I "ssh meerkat", I am connecting to a different host than the 
> meerkat I expected.
> 
> ping meerkat gives one host (202.50.84.15)
> nslookup meerkat gives another (192.168.x.x)

Sorry, I've been leaving out some implied details.

Obviously the issue is a more generic name resolution issue, it's just I 
first noticed it when trying to use ssh.

The other thing is that ping and nslookup work as expected on the 
underlying system (Windows 2000), it's only under Cygwin that the issue 
exists.  I didn't notice an /etc/hosts or a /etc/resolv.conf, so I 
assume that Cygwin gets this information from the underlying system, but 
I'll do some more reading...

-- 
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ssh and name resolution
@ 2002-05-31  9:13 John Vincent
  0 siblings, 0 replies; 7+ messages in thread
From: John Vincent @ 2002-05-31  9:13 UTC (permalink / raw)
  To: michael.wardle; +Cc: cygwin

Hi,

Remember that windows has it's own hosts file. For example
on Win2K and WinNT it's at c:\WINNT\system32\drivers\etc\hosts

I hope this helps.
/John Vincent.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-05-31  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30  3:25 ssh and name resolution Michael Wardle
2002-05-30  7:47 ` AW: " gmx
2002-05-30  8:41   ` David Starks-Browning
2002-05-30 19:59 ` Michael Wardle
2002-05-30 20:23   ` AW: " gmx
2002-05-30 20:32   ` Michael Wardle
2002-05-31  9:13 John Vincent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).