Fix "the ECDSA host key for 'your server' differs from the key for the IP address 'the ip'"
2017-05-12 13:13
811 查看
Cause: the change of remote git address
Platform:MAC
2)
3) Then edit this config file:
4)
http://blog.csdn.net/zhangp80/article/details/6889568
http://stackoverflow.com/questions/9299651/git-says-warning-permanently-added-to-the-list-of-known-hosts
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.
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
4)
:wq
Reference:
https://serverfault.com/questions/423019/known-hosts-ecdsa-host-key-multiple-domains-on-one-iphttp://blog.csdn.net/zhangp80/article/details/6889568
http://stackoverflow.com/questions/9299651/git-says-warning-permanently-added-to-the-list-of-known-hosts
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.
相关文章推荐
- git出现 Warning: the ECDSA host key for 'myserver' differs from the key for the IP address 192.。
- git学习笔记 --- Warning: the ECDSA host key for 'myserver' differs from the key for the IP address 192.。
- Linux_SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- MYSQL Communication link failure, message from server: "Can't get hostname for your address"
- mysql Communication link failure, message from server: "Can't get hostname for your address"
- mysql Communication link failure, message from server: "Can't get hostname for your address"
- perMnently added the ecdsa host key for ip address ‘【ip地址】’ to the list of known hosts
- Warning: Permanently added the ECDSA host key for IP address '192.168.80.133' to the list o
- MySQL-Communication link failure, message from server: "Can't get hostname for your address"
- Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
- Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hos
- Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host
- Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host
- Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hos
- Git Bash 提示 Warning: Permanently added the RSA host key for IP address
- Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos