ssh登陆Linux服务器的时候,如果出现了Host key verification failed的错误,需要清空下本地ip密码记录。
解决方案:
方案 1:
sudo rm -rf ~/.ssh/known_hosts # 删除已有known_hosts 文件(建议)
方案 2:
ssh-keygen -R xxx.xxx.xxx.xxx(服务器ip)
ssh登陆Linux服务器的时候,如果出现了Host key verification failed的错误,需要清空下本地ip密码记录。
解决方案:
方案 1:
sudo rm -rf ~/.ssh/known_hosts # 删除已有known_hosts 文件(建议)
方案 2:
ssh-keygen -R xxx.xxx.xxx.xxx(服务器ip)