当前位置:网站首页>解决服务器重装无法通过ssh连接的问题
解决服务器重装无法通过ssh连接的问题
2022-06-30 11:56:00 【爱叨叨的程序狗】
出现问题的原因
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
当我们Linux服务器选择重装系统后,再次使用ssh [email protected]在命令行登录服务器时,会有如上文报错,纠其原因就是我们命令行所在的电脑在第一次连接成功服务器时,会记录一个ip+RSA的秘钥,由于服务器重装,Linux服务器的RSA公钥改变,那么相同的ip两者的公钥无法对起来,所以会出现该问题。
解决问题的办法
编辑Mac系统用户文件下的known_hosts文件。由于个人用户名称不一致,命令中请自行更改。
vi /Users/liu_pc/.ssh/known_hosts

正常情况下会有ip + rsa公钥的文本,在vi下使用插入模式删除对应ip+rsa公钥的文本即可。
使用:wq保存文件。
然后再使用ssh命令登录即可。
边栏推荐
- 移除无效的括号[用数组模拟栈]
- Limited time appointment | Apache pulsar Chinese developer and user group meeting in June
- [cf] 803 div2 A. XOR Mixup
- Typescript readonlyarray (read only array type) details
- The sci-fi ideas in these movies have been realized by AI
- 695.最大岛屿面积
- HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴
- If it is not listed again, Kuangshi technology will not be able to endure
- It is said that with this, the boss opened the test overnight
- R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and_ Set the alpha parameter in the point parameter to specify the transparency level of data points (points transparent
猜你喜欢

浏览器播放rtsp视频,基于nodeJs

NoSQL——Redis的配置与优化

MySQL 复合查询

Yolov5 export the pit encountered by onnx

wallys/IPQ8074a/2x(4 × 4 or 8 × 8) 11AX MU-MIMO DUAL CONCURRENT EMBEDDEDBOARD

60 divine vs Code plug-ins!!

Hannaiping of Qilin software: the construction of Digital China needs its own open source root community

用于生成学习任务的量子神经网络2022最新综述

A quietly rising domestic software, low-key and powerful!

MySQL 表的内连和外连
随机推荐
MySQL 复合查询
List集合
R语言ggplot2可视化:使用ggplot2可视化散点图、使用scale_color_viridis_d函数指定数据点的配色方案
R语言ggplot2可视化:gganimate包基于transition_time函数创建动态散点图动画(gif)、使用labs函数为动画图添加动态时间标题(抽取frame_time信息)
麒麟软件韩乃平:数字中国建设需要自己的开源根社区
A high precision positioning approach for category support components with multiscale difference reading notes
OpenMLDB Meetup No.4 会议纪要
R language ggplot2 visualization: gganimate package is based on Transition_ Time function to create dynamic scatter animation (GIF)
DMA controller 8237a
led背光板的作用是什么呢?
The website with id 0 that was requested wasn‘t found. Verify the website and try again
R language ggplot2 visual Facet: gganimate package is based on Transition_ The time function creates a dynamic scatter graph animation (GIF) and uses the labs function to add a dynamic time title to t
zabbix监控TCP连接个数
MATLAB中polarplot函数使用
shell第一个命令结果传入第二个命令删除
In depth analysis of Apache bookkeeper series: Part 4 - back pressure
Parallel interface 8255A
构造函数、类成员、析构函数调用顺序
HMS core audio editing service 3D audio technology helps create an immersive auditory feast
c# 怎样能写个sql的解析器