前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。
1. 问题描述:阿里云服务器 磁盘初始化之后用 git-bash ssh root@xx.xx.xx.xx 方式登陆服务器,报错如下。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:V7h2Fdvk1Mc941+Bt6vJW8LpOGFDWVfFiQ3ezF/yzXo.
Please contact your system administrator.
Add correct host key in /c/Users/LYSM/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/LYSM/.ssh/known_hosts:7
ECDSA host key for xxx.xx.xxx.xx has changed and you have requested strict checking.
Host key verification failed.
2. 解决:清除之前连接过的信息记录。执行命令:
ssh-keygen -R XX.XX.XX.XX (这是服务器 IP)例如:ssh-keygen -R 172.168.2.59
3.重新 shh 登陆,一切正常。