From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3A063882.56972951@mail.gmail.com> From: Russ Cox To: 9fans@cse.psu.edu Subject: Re: [9fans] server presented public key different than expected Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <96ff515ffb9786a6970696e90ba4c920@mteege.de> Date: Sat, 10 Apr 2004 09:25:53 -0400 Topicbox-Message-UUID: 58767c98-eacd-11e9-9e20-41e7f4b1d025 > 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