问题

很久没有用VScode的SSH了,今天心血来潮想上去看看,结果就是无论怎么连接都会弹出Could not establish the connection to the "server"。

解决方法

在vscode 上方菜单栏 查看--命令面板---输入Remote SSH--Kill VS Code server on host

VScode报错----SSH错误_github

追根溯源参考

https://github.com/microsoft/vscode-remote-release/issues/5241