Re: Slightly embarassing bug in error message when RSA key doesn't match.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 25, 2024 at 10:37:15AM -0600, Peter da Silva wrote:

> Warning: the ECDSA host key for 'github.com' differs from the key for
> the IP address '140.82.113.3'
> Offending key for IP in /[...]/.ssh/known_hosts:8
> Matching host key in /[...]/.ssh/known_hosts:18
> 
> Of course it was the RSA key that had changed, and known_hosts:8 was
> an RSA key, but the error said the ECDSA key was wrong. After removing
> the bogus RSA key from the file it worked fine with the matching ECDSA
> key. This error should probably report the correct type for the key
> that is wrong rather than the key it’s trying to use. :)

This comes from your ssh client, not Git itself (of course Git is
calling the ssh client under the hood, but we can't fix their messages).

-Peff




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux