赞
踩
ping服务器的ip可通并且使用terminal可以ssh连接到远程服务器。但使用vscode的remote-ssh时,在「输出」栏出现了一直报 Waiting for server log… 的情况!
重置服务器设置,包括以下手段:
1.清理服务器端的vscode-server
#首先打开vscode,并通过下面快捷键打开命令面板
Ctrl+Shift+P
#随后搜索使用即可
Remote-SSH:Kill VsCode Server on Host
当再次使用vscode连接远程服务器时,会发现vscode在重新下载以及安装vscode-server。
2.重置本地的客户端设置
在本地文件夹打开路径C:\Users\本机用户名\.ssh
删掉下面两个文件:
随后重新启动vscode
最近vscode发布了1.86版本,该版本提高了对glibc的要求,导致了旧版本的linux发行版无法继续使用remote-ssh来连接了。如cenos7
、Ubuntu 18.04
。
下面贴一段官方的更新说明:
In this milestone, we have updated the toolchains to build our desktop client. From this release onwards, VS Code desktop is only compatible with Linux distributions based on glibc 2.28 or later, and glibcxx 3.4.25 or later, such as Debian 10, RHEL 8, or Ubuntu 20.04.
If you are unable to upgrade your Linux distribution, the recommended alternative is to use our web client. If you would like to use the desktop version, then you can download the VS Code release 1.85. Depending on your platform, make sure to disable updates to stay on that version. A good recommendation is to set up the installation with Portable Mode.
然而vscode没给任何说明,直接自动更新让我浪费了一整晚才找到原因,这里分别说明以下官方的两个方法都如何实现:
1.回退版本到1.85.2,同时永久禁用更新。
2.下载官方推荐的Portable Mode。流程如下:
上面流程引用于某乎佬:https://zhuanlan.zhihu.com/p/681066025
此时,再进入vscode的「拓展」中,将remote-ssh的重新加载降级即可。
分享github的issue中有关该问题的讨论:
问题讨论:https://github.com/microsoft/vscode/issues/203967
抱怨连连:https://github.com/microsoft/vscode/issues/203375
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。