共 1 篇文章
SSH 连接时若远程主机密钥变更,需清除旧密钥后重新连接。
当出现「远程主机密钥已更改」警告时,使用 ssh-keygen -R 清除旧密钥:
ssh-keygen -R
1 2
ssh-keygen -R <主机IP或域名> …