使用Windows上的VS Code远程编辑幽兰上的代码时,有时可能遇到连接失败,通过VSCode的日志窗口可以看到如下输出:
[20:32:03.659] > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ 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:2ijMLtiuhYXofgoNgXEmDDiqr8GaRGwpkzMjS9UGp40.
> Please contact your system administrator.
> Add correct host key in C:\\Users\\geduer/.ssh/known_hosts to get rid of this message.
> Offending ECDSA key in C:\\Users\\geduer/.ssh/known_hosts:3
> Host key for 192.168.71.15 has changed and you have requested strict checking.
> Host key verification failed.
> The process tried to write to a nonexistent pipe.
vscode打开远程的folder时出这个问题,怎么解决
如果遇到这个问题,可以尝试如下方法解决:
PS C:\WINDOWS\system32> ssh-keygen -R 192.168.71.15
# Host 192.168.71.15 found: line 1
# Host 192.168.71.15 found: line 2
# Host 192.168.71.15 found: line 3
C:\Users\geduer/.ssh/known_hosts updated.
Original contents retained as C:\Users\geduer/.ssh/known_hosts.old
今晚亲测有效。
作者:gdman 创建时间:2026-10-27 20:36
最后编辑:gdman 更新时间:2026-10-28 20:42
最后编辑:gdman 更新时间:2026-10-28 20:42