RSA host key for 172.16.138.70 h
2019-09-29 本文已影响0人
Peter杰
今天重新越狱后连接手机时,发现报错:
RSA host key for 172.16.138.70 has changed and you have requested strict checking. Host key verification failed.
具体如下:
因为重装后,本地机和服务器内部ssh对不上导致错误,因此,只需要删除本地机ssh缓存信息,即可恢复。
ssh-keygen -R [服务器ip address]
得到以下结果:
# Host [IP address] found: line **
/Users/apple/.ssh/known_hosts updated.
Original contents retained as /Users/apple/.ssh/known_hosts.old
重新连接即可