ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail

简介: ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail

一、背景

因为公司机器映射到公网,遭到攻击,正常输入密码,登录不上。最终选择了重装系统。装完系统,跟往常一样登录vscode,发现一直登不上,报错:ECDSA host key for… has changed and you have requested strict checking.Host key verification fail。记录下解决步骤:

ECDSA host key for… has changed and you have requested strict checking.Host key verification fail。

二、解决方法

方法一:在windows下 cmd 输入: ssh-keygen -R “远程服务器ip地址” ,清除当前机器缓存的之前的公钥信息。然后vscode重新连接即可。若是没解决尝试方法二:

方法二

在vscode终端机器上找known_hosts文件。找到后直接删除对应ip的记录。

假如你的远程机器ip是192.168.10.226,删除该条记录,在用vscode连接就Ok了

参考连接:https://blog.csdn.net/qq_31747765/article/details/82414278

相关文章
|
20天前
|
数据安全/隐私保护
INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostT
这篇文章描述了作者在执行HDFS操作时遇到的SASL加密信任检查日志信息问题,其中`localHostTrusted`为`false`,并且有时候这个日志信息会出现,有时候不会。
INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostT
|
网络安全 开发工具 git
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
3533 0
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
|
15天前
|
网络安全
出现“Host key verification failed”错误--解决
遇到“Host key verification failed”错误,通常是因为远程主机密钥发生变化,与本地保存的信息不符。这种情况可能是远程主机系统更改或重装等原因导致的。解决方法是根据提示使用`ssh-keygen -f "/root/.ssh/known_hosts" -R "[10.61.0.152]:29022"`命令移除旧的密钥信息,然后重新尝试连接。
45 5
|
4月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
502 0
|
4月前
|
网络安全
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
1312 0
|
安全 网络安全 开发工具
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
434 0
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
服务器重启后 Host key verification failed
服务器重启后 Host key verification failed
132 0
服务器重启后 Host key verification failed
|
关系型数据库 MySQL 数据库
Your password has expired. To log in you must change it using a client that supports expired passwod
Your password has expired. To log in you must change it using a client that supports expired passwod错误解决
Your password has expired. To log in you must change it using a client that supports expired passwod
|
网络安全 开发工具
Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss
Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss
|
网络安全
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决
303 0
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决