[python-committers] Possible "REMOTE HOST IDENTIFICATION HAS CHANGED!" Error.

Barry Warsaw barry at python.org
Fri Jan 23 19:20:21 CET 2015
On Jan 23, 2015, at 04:16 PM, Brett Cannon wrote:

>Looks like my id_rsa key is not being tried soon enough for the two-attempt
>threshold as the key that GitHub for Mac installed and my work key are
>being tried first (I tried specifying my id_rsa key with -i but that didn't
>seem to change anything):

I get this all the time when I add my Debian ssh key to ssh-agent and then try
to connect to hosts on my LAN (which use a different key).  I think this is a
limitation of ssh-agent and if you search the web, you'll find various
solutions, which I've used to varying degrees of success.

Basically you want to force ssh not to use the agent when connecting to the
site (I haven't yet tried hg.python.org with multiple keys).  E.g. in your
~/.ssh/config file:

Host hg.python.org
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes

HTH,
-Barry


More information about the python-committers mailing list