9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] server presented public key different than expected
@ 2004-04-10 12:37 Matthias Teege
  2004-04-10 13:25 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Teege @ 2004-04-10 12:37 UTC (permalink / raw)
  To: 9fans

I try to connect one of my servers via ssh and get

server cao presented public key different than expected
(expected key in /usr/mtg/lib/keyring).  will not continue.
this could be a man-in-the-middle attack.

I understand the problem but there isn't any public key
for server cao in /usr/mtg/lib/keyring. It has only two
lines for different servers. Is there any other place where
public keys are saved?

Many thanks
Matthias


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

* Re: [9fans] server presented public key different than expected
  2004-04-10 12:37 [9fans] server presented public key different than expected Matthias Teege
@ 2004-04-10 13:25 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2004-04-10 13:25 UTC (permalink / raw)
  To: 9fans

> server cao presented public key different than expected
> (expected key in /usr/mtg/lib/keyring).  will not continue.
> this could be a man-in-the-middle attack.
> 
> I understand the problem but there isn't any public key
> for server cao in /usr/mtg/lib/keyring. It has only two
> lines for different servers. Is there any other place where
> public keys are saved?

ssh tries to figure out the canonical names for
servers so that you don't get prompted over and
over as you use slightly different names for each
machine.

in /sys/src/cmd/ssh.c, after the call to setaliases,
put print("host aliases: %s\n", c->aliases);
perhaps one of those is matching a key in that file.

the message is accurate -- it's really that file
that has the key.

russ


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

end of thread, other threads:[~2004-04-10 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-10 12:37 [9fans] server presented public key different than expected Matthias Teege
2004-04-10 13:25 ` Russ Cox

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 NNTP newsgroup(s).