出错:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:k0FE8L9WCbWvpdH/P8Fl41DdGu2+0uyGDpaTeLqm2Qo.
Please contact your system administrator.
Add correct host key in /home/py/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/py/.ssh/known_hosts:2
remove with:
ssh-keygen -f "/home/py/.ssh/known_hosts" -R 192.168.3.88
ECDSA host key for 192.168.3.88 has changed and you have requested strict checking.
Host key verification failed.
解决方法
命令:
ssh-keygen -f "/home/py/.ssh/known_hosts" -R 192.168.3.87
我这里的IP:192.168.3.87
第一次连新装的rasperrypi :
1、在写入新系统镜像后,不要弹出SD卡;
2、在其中新建ssh的空文件。(不要后缀名)
3. 有连显示的,
树莓派SSH服务未开启,这个可以通过命令service ssh status检查,开启时是active(runing),未开启是 stop(inactive)。如果是stop,那么用service ssh start打开.