清除原有ssh密钥方法

远程连接主机发现密匙发生变化,

Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.

Offending key in /var/root/.ssh/known_hosts:1

RSA host key for 192.168.1.203 has changed and you have requested strict checking.

Host key verification failed.


执行此命令即可解决。

sh-keygen -R 192.168.1.XXX(远程服务器的IP)

你可能感兴趣的:(Linux)