一、连接不上
先定性,如果满足这个现象:
1、vscode使用ssh时,一直提示连接中。并且try1,try2,try3这样循环下去
2、打开终端可见如下循环输出:
[08:48:13.513] Server installation process already in progress - waiting and retrying
[08:48:14.517] Running script with connection command: ssh -T -D 58042 "192.168.31.235" bash
[08:48:14.518] Terminal shell path: C:\Windows\System32\cmd.exe
[08:48:14.900] > ]0;C:\Windows\System32\cmd.exe
[08:48:14.900] Got some output, clearing connection timeout
[08:48:14.933] "install" terminal command done
[08:48:14.933] Install terminal quit with output:
[08:48:15.404] > 741b6048ee5c: running
[08:48:15.469] > Acquiring lock on /home/zhangyasheng/.vscode-server/bin/c3f126316369cd610563c75b
> 1b1725e0679adfb3/vscode-remote-lock.zhangyasheng.c3f126316369cd610563c75b1b1725e
> 0679adfb3
[08:48:15.478] > Installation already in progress...
> If you continue to see this message, you can try toggling the remote.SSH.useFloc
3、你的服务器关闭了外网的连接或者外网很慢
那么,请参考这篇文章:
vscode ssh连接失败_我歌月徘徊、的博客-CSDN博客_vscode连不上ssh
Or
vscode卡在Setting up SSH Host XX:Copying VS Code Server to host with scp_二十一@的博客-CSDN博客
即使解决了问题,也请把vscode的更新关掉,以避免此问题。
二、闪退
多行操作的时候闪退,网上没找到合适的方法。但意外发现,删掉Vscode的缓存之后问题就没有了。
缓存路径:
C:\Users\username\AppData\Roaming\Code\