【操作】ssh删除旧key

有时候我们会重装服务器、更新服务器密码,那么需要删除原来的旧sshkey才可以连接,不然会报错

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:O1EndUuzBDePDr6otIFrGveybYlKOpoRHMYwYCnlhHQ.
Please contact your system administrator.
Add correct host key in C:\\Users\\xxxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\xxxx/.ssh/known_hosts:11
Host key for xx.xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.

我们可以执行以下命令删除老的key

ssh-keyGen -R xx.xx.xx.xx
# 输出:
# Host xx.xx.xx.xx found: line 9
# Host xx.xx.xx.xx found: line 10
# Host xx.xx.xx.xx found: line 11
C:\Users\xxxx/.ssh/known_hosts updated.
Original contents retained as C:\Users\xxxx/.ssh/known_hosts.old
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Source: https://github.com/MengXi2021/Argon-Emoji-DailyNotes
Source: https://github.com/Ghost-chu/argon-huhu-emotions
Source: github.com/zhheo/Sticker-Heo
颜文字
Emoji
小恐龙
花!
每日手帐
呼呼
Heo
上一篇
下一篇
Ads Blocker Image Powered by Code Help Pro

检测到广告阻止程序!!!

检测到您正在使用扩展来阻止广告。请通过禁用这些广告阻止程序来支持我。

感谢您的支持!

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock