xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

如何修复树莓派在更换了一个 SD 系统卡后,无法使用 SSH 登录问题 All In One

如何修复树莓派在更换了一个 SD 系统卡后,无法使用 SSH 登录问题 All In One

known hosts

Raspberry Pi 无法 SSH 登录,报错 ❌

/Users/xgqfrms-mm/.ssh/known_hosts

ssh pi@raspberrypi.local

$ ssh pi@raspberrypi.local
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:OSm7xD6bEquDahA8bP4syFSsZNgUpsg70HfiSuj5A8Q.
Please contact your system administrator.
Add correct host key in /Users/xgqfrms-mm/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/xgqfrms-mm/.ssh/known_hosts:6
Host key for raspberrypi.local has changed and you have requested strict checking.
Host key verification failed.

solution

# 查看
$ cat /Users/xgqfrms-mm/.ssh/known_hosts

# 修改/删除
$ sudo code  /Users/xgqfrms-mm/.ssh/known_hosts

# $ sudo vim  /Users/xgqfrms-mm/.ssh/known_hosts
# $ sudo nano  /Users/xgqfrms-mm/.ssh/known_hosts

raspi-config

# GUI 交互式命令行界面
$ sudo raspi-config

在本质上还是直接修改 /boot/config.txt 配置文件

https://www.raspberrypi.com/documentation/computers/configuration.html#the-raspi-config-tool

refs

无显示器如何通过配置文件快速修复树莓派无法通过 SSH 访问的问题 All In One

在没有显示器的情况下如何通过配置系统文件快速的修复树莓派无法通过 SSH 访问的问题 All In One

显示器 SSH 远程访问 树莓派

https://www.cnblogs.com/xgqfrms/p/17323303.html#5169080



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(89)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
历史上的今天:
2022-04-18 Pinia All In One
2022-04-18 HTML5 meta & SEO All In One
2022-04-18 js generator function All In One
2022-04-18 js Uint8ClampedArray All In One
2022-04-18 CSS background multi linear-gradient All In One
2022-04-18 上海市小区预计解封日期查询 All In One
2021-04-18 Custom React Hooks All In One
点击右上角即可分享
微信分享提示