wsl ssh 远程连接其它主机报错

1.报错提示

root@SC-201710281016:/mnt/d/Chrome Download# ssh root@192.168.1.102
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:YqRiQ6sDfMyJLap5YuKY5ZF9eEo7LpZ3kFZMzp2Ehog.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:4
  remove with:
  ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.1.102
ECDSA host key for 192.168.1.102 has changed and you have requested strict checking.
Host key verification failed.
root@SC-201710281016:/mnt/d/Chrome Download#

2. 清除known_hosts文件内容

# vim /root/.ssh/known_hosts
删除文件内容

参考:
1.Remote host Identification has changed

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/80724349
wsl
今日推荐