ECDSA host key "ip地址" for has changed and you have requested strict checking.

CentOS:ECDSA host key "ip地址" for has changed and you have requested strict checking(转)

Original address: http://blog.csdn.net/ausboyue/article/details/52775281

Linux  SSH command error: ECDSA host key "ip address" for has changed and you have requested strict checking. Record it for easy memory. 

Solution: Enter the following command on the terminal: 

 

ssh-keygen -R "your remote server ip address"   

 

The purpose is to clear your current machine's cache and public key information about your remote server, note the capital letter "R". 

Reason analysis: According to my personal situation, the reason is that my cloud server reinstalled the system (cleared the information related to my local SSH connection protocol), and the local SSH information became invalid. When using SSH to connect to the same ip address, I used Invalid protocol information, so an error will be reported. Use the above command to clear the old cache file in known_hosts

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326397465&siteId=291194637