当前位置:网站首页>Solve the problem that the server cannot be connected via SSH during reinstallation
Solve the problem that the server cannot be connected via SSH during reinstallation
2022-06-30 12:18:00 【Nagging program dog】
The cause of the problem
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:+U+xy3dOfsLZ4KWbCUQvfajA//gL/FIYxaVPFcbkSQU.
Please contact your system administrator.
Add correct host key in /Users/liu_pc/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/liu_pc/.ssh/known_hosts:1
ECDSA host key for ip has changed and you have requested strict checking.
Host key verification failed.
When we Linux After the server chooses to reinstall the system , Again using ssh [email protected] When logging into the server from the command line , An error will be reported as above , The reason is that the computer where our command line is located is connected to the server successfully for the first time , Will record a ip+RSA The secret key to , Due to server reinstallation ,Linux Server's RSA Public key change , So the same ip The public keys of the two cannot be matched , So there will be this problem .
The solution to the problem
edit Mac Under the system user file known_hosts file . Due to inconsistent individual user names , Please change the command by yourself .
vi /Users/liu_pc/.ssh/known_hosts

Normally there will be ip + rsa The text of the public key , stay vi Use the insert mode to delete the corresponding ip+rsa The text of the public key .
Use :wq Save the file .
And then use ssh Command login .
边栏推荐
- After the node is installed in the NVM, the display is not internal or external when the NPM instruction is used
- R language ggplot2 visualization: use ggplot2 visualization scatter diagram and the color parameter in AES function to specify that data points in different groups are displayed in different colors
- R语言ggplot2可视化:使用ggplot2可视化散点图、使用scale_size函数配置数据点的大小的(size)度量调整的范围
- Understanding and learning of MySQL indexing and optimization
- 1175. 质数排列 : 乘法原理运用题
- 用于生成学习任务的量子神经网络2022最新综述
- Lvgl widget styles
- How can c write an SQL parser
- R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram and use scale_ color_ viridis_ D function specifies the color scheme of data points
- Four Misunderstandings of Internet Marketing
猜你喜欢
![[cloud native | kubernetes] in depth understanding of deployment (VIII)](/img/88/4eddb8e6535a12541867b027b109a1.png)
[cloud native | kubernetes] in depth understanding of deployment (VIII)

Set集合

Swagger2自动生成APi文档

What are the applications of 3D visual inspection in production flow

爱可可AI前沿推介(6.30)

SuperMap iServer11i新功能----图例的发布和使用
![Remove invalid parentheses [simulate stack with array]](/img/df/0a2ae5ae40adb833d52b2dddea291b.png)
Remove invalid parentheses [simulate stack with array]

Understanding and learning of MySQL indexing and optimization

实现多方数据安全共享,解决普惠金融信息不对称难题

3D视觉检测在生产流水的应用有哪些
随机推荐
AGCO AI frontier promotion (6.30)
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
Biological network analysis using deep learning
智慧法院新征程,无纸化办公,护航智慧法院绿色庭审
构造函数、类成员、析构函数调用顺序
会议预告 | 华为 2012 实验室全球软件技术峰会-欧洲分会场
3D视觉检测在生产流水的应用有哪些
海思3559开发常识储备:相关名词全解
iServer发布ES服务查询设置最大返回数量
200. 岛屿数量
通过EF Core框架根据SQL Server数据库表生成实体类
拆分电商系统为微服务
Redis6学习笔记-第二章-Redis6的基本操作
爱可可AI前沿推介(6.30)
90.(cesium篇)cesium高度监听事件
[cf] 803 div2 B. Rising Sand
网络营销之四大误解
Map集合
Use of polarplot function in MATLAB
R语言ggplot2可视化分面图(facet):gganimate包基于transition_time函数创建动态散点图动画(gif)、使用labs函数为动画图添加动态时间标题