Everything was fine. Suddenly one day, an error was reported with
git push :
WARNING: POSSIBLE DNS SPOOFING DETECTED!
The above errors are generally caused by the migration of the company’s Git warehouse, resulting in ip changes. There is a
known_hostsfile in the git directory that stores the connected domain name and the corresponding ip. Every time there is a remote operation, it will verify whether the information in it matches, and the warehouse is migrated.
known_hostsThe domain name and ip in the latter file must not match, so the above error will occur. The easiest way is to delete
known_hoststhe domain name and the information behind it or empty the file.
: > ~/.ssh/known_hosts
Don’t forget the previous
: number, and then re-verify the connection
ssh -T [email protected]
- [Solved] item2 Error: a session ended very soon after starting. check that the command in profile default
- Gitlab-error: RPC failed; result=22, HTTP code = 500 settlement
- [Solved] Gitlab-runner Error: ERROR: Could not create cache adapter error=cache factory not found: factory for cache adapter “” was not registered
- [Solved] github fatal: unable to access ‘xxxx’: Could not resolve host:xxx
- Gitlab 403 Forbidden error [How to Solve]
- MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts…
- MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’ [How to Solve]
- [Solved] Gitlab can clone via SSH, cannot clone via HTTP, and cannot pipeline. Prompt port 80: connection rejected
- Mac remote service repair: warning: remote host identification has changed!