首页 > 其他分享 >WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

时间:2022-10-24 19:04:21浏览次数:43  
标签:xxx host HOST WARNING IDENTIFICATION ssh key ed25519 com


 1. 错误

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:Te700pCcrDbINw1UY5Tho+LGnCCY7hKECop/NicS43o.
Please contact your system administrator.
Add correct host key in /Users//.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users//.ssh/known_hosts:7
Host key for gitlab.xx.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

2. 查看 user@user-MBP ~ % source ~/.ssh/known_hosts

gitlab.xxx.io ssh-ed25519 AAAAC3NzaC\/xzk1YRRY/HLdzlCXLUY1/9TlO5OIwis***
gitlab.xxx.io ssh-rsa AAAAB3NzaC1yc2EAAAADAQ\9oLplgAOFE/9y
gitlab.xxx.io ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNo\farHidh7At5rbBpG01N37cSU4LkYi2G3v0Psw=
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
github.com ssh-rsa AAAAB3NzaC1yc2EAAAqlJL3RKrTJvdsjE3J
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNHLdzlCXLUY1/9TlO5OIwiss***

3. 删除一个 ed25519 这一行即可

标签:xxx,host,HOST,WARNING,IDENTIFICATION,ssh,key,ed25519,com
From: https://blog.51cto.com/u_4981212/5790936

相关文章