起因
今天(.4.7)想使用VS Code远程(ssh)连接到服务器写bug,结果一直连接不上,输入密码之后不能正常连接,右下角报错是ssh插件有问题,但是terminal里面可以ssh成功,认为可能是Code自己的问题,考虑到昨天刚刚更新了最新版的Code,所以决定卸载当前版本,安装上一个旧版本。
操作
卸载当前版本Codesudo apt-get --purge remove code
然后到home目录下,按Ctrl+h显示隐藏文件,删除.vscode文件夹和.config目录下的Code目录即可。
下载安装旧版本Code
在这个网站上找旧版本的Code:
Visual Studio Code March /updates可以在后面加上版本号快速找到自己想要的版本,或者点选也可以。如:
Visual Studio Code February Learn what is new in the Visual Studio Code February Release (1.65)/updates/v1_65下载.deb,之后执行
sudo dpkg -i code_1.65.2-1646927742_amd64.deb
即可,之后重新安装ssh插件,即可正常使用。