首页 > 其他分享 >[VScode] VScode Remote 报错:Could not establish connection to "workspace": Port forwarding i

[VScode] VScode Remote 报错:Could not establish connection to "workspace": Port forwarding i

时间:2023-02-18 19:55:34浏览次数:75  
标签:Remote VScode disabled connection 报错 forwarding establish

VScode Remote 报错·Bug陈列

Could not establish connection to "workspace": Port forwarding is disabled.

这个网站中列举了一些可能的错误原因:

https://stackoverflow.com/questions/60507713/vscode-remote-ssh-connection-failed

我遇到的问题是,远程主机的ssh key可能被修改过,但是在.ssh/known_hosts中依然缓存着旧的key,导致登入失败。

解决方法:删除known_hosts中对应的行即可,刷新缓存。

标签:Remote,VScode,disabled,connection,报错,forwarding,establish
From: https://www.cnblogs.com/CQzhangyu/p/17133414.html

相关文章