当前位置: 首页 > 工具软件 > remote-sh > 使用案例 >

vscode的remote-ssh无法连接,服务端日志[ExtensionHostConnection] The client has reconnected

令狐翰
2023-12-01

关闭服务端

⚡ 01/24|19:34:39 > 20220119T105255 > ps aux | grep vscode
root     16092  0.0  0.0   9564  1324 ?        S    1月19   0:00 sh /root/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/server.sh --host=127.0.0.1 --enable-remote-auto-shutdown --port=0
root     16100  0.0  0.0 951808 60660 ?        Sl   1月19   3:53 /root/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/node /root/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/out/vs/server/main.js --host=127.0.0.1 --enable-remote-auto-shutdown --port=0
root     49733  0.0  0.0 112828  1000 pts/25   S+   19:34   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn vscode
 ⚡ 01/24|19:34:46 > 20220119T105255 > kill -9 16092 16100

重新连接

然后重新用vscode连接即可

 类似资料: