MainelyDesign.com Blog

Fixing Warning: the ECDSA host key for 'github.com' differs from the key for the IP address

Posted on 09/10/2023 at 07:01 am by Kevin Wentworth
Viewed 2,314 times | 0 comments

Host Key Differs Warning from Github

When you run git fetch and you get this warning:

  1. Warning: the ECDSA host key for 'github.com' differs from the key for the IP address '140.82.114.3'
  2. Offending key for IP in /username/.ssh/known_hosts:7
  3. Matching host key in /username/.ssh/known_hosts:9

This is a pretty simple fix:

  1. ssh-keygen -R github.com
  2. ssh-keygen -R 140.82.114.3

You may have to do this more than once depending on how many different IP address are cached in your known_hosts file

Bookmark and Share

Tags for Fixing Warning: the ECDSA host key for 'github.com' differs from the key for the IP address

Web Server Admin

Comments for this Posting

No comments. Be the first to post a reply.

Sorry, comments are closed for this posting.

Please Email Kevin if you have any questions. Thanks!

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design