MAC终端 ECDSA host key for [xx.xx.xx.xx]:xxxx has changed and you have requested strict checking.

终端登陆SSH

ssh [email protected] -p xxxx

登陆异常 抛错

Add correct host key in /Users/jocelen/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /Users/jocelen/.ssh/known_hosts:2

ECDSA host key for [xx.xx.xx.xx]:xxxx has changed and you have requested strict checking.

解决办法

原因:两次ssh连接的秘钥不匹配,处理:打开报错路径下 /Users/jocelen/.ssh/known_hosts 文件
删除报错ip [xx.xx.xx.xx]:xxxx= 之间的字段即可

WeChat71907dba19bd0791cd635444c7a3bcb2.png

你可能感兴趣的:(MAC终端 ECDSA host key for [xx.xx.xx.xx]:xxxx has changed and you have requested strict checking.)