Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 906 Bytes

File metadata and controls

32 lines (27 loc) · 906 Bytes

Cause: the change of remote git address Platform:MAC

Warning Info:

Warning: the ECDSA host key for 'xx.xxx.com' differs from the key for the IP address 'xx.xx.xx.xx'
Offending key for IP in /Users/username/.ssh/known_hosts2:2 

Solution:

  1. cd ~/.ssh
  2. vim config
  3. Then edit this config file:
Host xx.xxx.com
	StrictHostKeyChecking no
	UserKnownHostsFile=/dev/null
	LogLevel=quiet
  1. :wq

Reference:

In summary

This solution really save my day! Also you can try this way : "ssh-keygen -R <yourhostname>" Windows platform may refer to this workaround as well.