首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vscode服务器未能启动SSH。

vscode服务器未能启动SSH。
EN

Stack Overflow用户
提问于 2021-10-05 23:45:10
回答 4查看 3K关注 0票数 1

试图通过Visual代码的远程SSH连接到主机,我得到以下弹出错误:

代码语言:javascript
复制
Could not establish connection to 100.xxx.xx.xx The vscode server failed to start SSH

在输出终端上,下面是错误消息:

代码语言:javascript
复制
[16:22:19.929] > Waiting for server log...
[16:22:19.981] > Waiting for server log...
[16:22:20.034] > Waiting for server log...
[16:22:20.088] >  
> *
> * Reminder: You may only use this software with Visual Studio family products,  
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) 
> *
> 
[16:22:20.102] > 
[16:22:20.130] > Server did not start successfully. Full server log at /home/pi/.vscode-server/.
> 7f6ab5485bbc0083e155244e.log >>>
> /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node: /usr/
> lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (requir
> ed by /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node)
> /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node: /usr/
> lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (requ
> ired by /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/nod
> e)
[16:22:20.136] > 
> <<< End of server log
[16:22:20.142] > 
> 2f61c0e4f600: start
> exitCode==32==
> listeningOn====
> osReleaseId==raspbian==
> arch==armv7l==
> tmpDir==/run/user/1000==
> platform==linux==
[16:22:20.148] > 
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==15126==
> installTime==4341==
> extInstallTime====
> serverStartTime==7826==
> 2f61c0e4f600: end
[16:22:20.148] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==raspbian==
arch==armv7l==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==15126==
installTime==4341==
extInstallTime====
serverStartTime==7826==

[16:22:20.149] Resolver error: Error: The VS Code Server failed to start
    at Function.ServerInstallError (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:39675)
    at u (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:391298)
    at Object.t.handleInstallOutput (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:39717)
    at Object.t.tryInstall (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:48914)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45110
    at async Object.t.withShowDetailsEvent (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45660)
    at async Object.t.resolve (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45189)
    at async c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:52942
[16:22:20.153] ------

[16:22:20.652] > 
[16:22:21.437] "install" terminal command done
[16:22:21.438] Install terminal quit with output:

我核实了

  • 两者都在同一个网络中
  • 通过点击主机就可以到达主机。
  • 我可以在命令提示符和powershell等其他终端上使用ssh,我只在VS代码远程SSH上看到问题。这几天天气很好,现在突然停了下来。

VS代码版本是版本: 1.60.2

对于如何调试和修复这个远程SSH问题,有什么建议吗?

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2022-03-29 19:20:10

在从Windows机器访问Linux服务器时,我遇到了相同错误消息的问题。我通过添加一个允许传入流量到VSCode的windows防火墙规则来解决这个问题(我已经设置了一个允许传出流量的规则,顺便说一句)。

票数 0
EN

Stack Overflow用户

发布于 2021-10-15 05:51:04

@oakad感谢您建议并指点远程端的libstdc++升级。

  • 我使用的主机是RPi 3B Debian(Jessie)。我试图升级vs代码和

sudo apt-get update

  • 这个帖子 addressed libstdc++.so.6: version `GLIBCXX_3.4.22‘not问题

所以试过了

sudo存储库ppa:ubuntu-toolchain/test sudo apt-获取更新sudo apt-获取安装gcc-4.9 sudo apt-get libstdc++6

后面是add存储库:命令not进一步尝试。

代码语言:javascript
复制
sudo apt install software-properties-common
sudo apt update 

它没有帮助,只是升级了RPi 3B到RPi 4现在远程-SSH的Visual代码是非常好的工作。(不确定最近是否有一些不再支持旧版本的Raspbian版本的更新)

票数 0
EN

Stack Overflow用户

发布于 2022-01-06 07:06:37

值得注意的是,我和OP有同样的问题,这是因为我运行的是杰西,其中的现在快5岁了。我更新了我的覆盆子Pi的内核从杰西到Buster (2021年)通过以下指南:https://djangocas.dev/blog/upgrade-existing-jessie-to-buster-without-re-image/

简而言之,将内核更新为更现代的内容。简短版本:

代码语言:javascript
复制
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/raspi.list

$ sudo apt-get update
$ sudo apt-get -y dist-upgrade

$ sudo reboot

一旦这是从杰西做到拉伸,做同样的从拉伸到破坏(在链接后指出)。

一旦一切都稳定下来,您就可以从远程框安装和运行vscode-server。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69458376

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档