当前位置:网站首页>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 .
边栏推荐
- MySQL索引和优化的理解学习
- Use of polarplot function in MATLAB
- The website with id 0 that was requested wasn‘t found. Verify the website and try again
- How difficult is data governance and data innovation?
- Redis - ziplist compressed list
- R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and_ Set show in the point parameter_ The legend parameter is false, and the legend information is not displayed
- YOLOv5导出onnx遇到的坑
- SuperMap iServer11i新功能----图例的发布和使用
- 麒麟软件韩乃平:数字中国建设需要自己的开源根社区
- How can c write an SQL parser
猜你喜欢
随机推荐
Multiparty cardinality testing for threshold private set-2021: Interpretation
剑指 Offer 05. 替换空格: 把字符串 s 中的每个空格替换成“%20“
Yolov5 export the pit encountered by onnx
SuperMap iClient3D for WebGL 加载TMS瓦片
Edusoho enterprise training version intranet only deployment tutorial (to solve the problems of player, upload and background jam)
ZABBIX monitors the number of TCP connections
Flutter 从零开始 006 单选开关和复选框
Four Misunderstandings of Internet Marketing
c# 怎样能写个sql的解析器
1020. 飞地的数量
MATLAB中polarplot函数使用
Openmldb meetup No.4 meeting minutes
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram and use scale_ x_ The log10 function configures the value range of the X axis to be logarithmic coordinates
Understanding and learning of MySQL indexing and optimization
MySQL 表的内连和外连
YOLOv5导出onnx遇到的坑
How difficult is data governance and data innovation?
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and_ Set show in the point parameter_ The legend parameter is false, and the legend information is not displayed
Boost study: boost log
The sci-fi ideas in these movies have been realized by AI