我使用Remote-SSH连接到远程,然后远程主机上的Attach Visual Studio Code给出了一个错误。
[2022-01-12 16:59:07.497] [exthost] [error] Shell server terminated (code: 255, signal: null)
enter code here
ssh: Could not resolve hostname local-88-centos0-frp: No such host is known.
remote-containers.attachToRunningContainerFromViewlet {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}发布于 2022-01-31 05:23:31
当我试图连接我们的实验室服务器时,我也在我的计算机上遇到了这个问题:但是其他人的计算机在试图连接到远程容器时没有弹出这个错误。
Shell server terminated (code: 255, signal: null)
ssh: connect to host xxx.xxx.xxx.xx port 22: Connection refused好的,最后我找到了解决方案,它可能是vscode远程- SSH扩展上的一个bug。
extension
请将此设置保留为空,默认为. .ssh/config,请在此修改,但此处不输入.
然后我发现我的问题解决了..。希望这能帮助和我一样遇到同样问题的人。
https://stackoverflow.com/questions/70678804
复制相似问题