记录一次远端登录linux失败

问题复现

之前一直使用vscode远端登录一个开发板,但是今天忽然连接不上了,但是用mobax 等工具ssh 是能正常连上的。具体报错如下

> ver/.e7e037083ff4455cf320e344325dacb480062c3c.log >>>
[11:24:39.898] > 
> <<< End of server log
> 7e50b71f79fc: start
> exitCode==32==
> listeningOn====
> osReleaseId==ubuntu==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime==14628==
> 7e50b71f79fc: end
[11:24:39.898] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==14628==

[11:24:39.900] Resolver error: Error: The VS Code Server failed to start
	at g.ServerInstallError (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:640871)
	at d (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:634258)
	at t.handleInstallOutput (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:636528)
	at t.tryInstall (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:760218)
	at async c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:720757
	at async t.withShowDetailsEvent (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:724063)
	at async I (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:717728)
	at async t.resolve (c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:721434)
	at async c:\Users\LD\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.5\out\extension.js:2:905238

解决思路

1.网上查出来让配置ssh(我这个一直是用户密码登录的,不考虑)
2.让重装vscode 和插件,重装了无效,我重装了我开发电脑的vscode
3.仔细查看报错日志和文档,说的是让linux端下载失败 vscode的server失败了,它工作原理应该是在远端下载了一个vscode的工具,然后才能远端连接,并且之前都是正常的,所以尝试

1.确认网络畅通,查看路由配置,ping 百度等正常

xxxx@nt006:~/hostcontrol$ ping -I ppp0 www.baidu.com
PING www.a.shifen.com (14.119.104.254) from 10.65.2.162 ppp0: 56(84) bytes of data.
64 bytes from 14.119.104.254 (14.119.104.254): icmp_seq=1 ttl=54 time=167 ms

以我这里为例 我用ppp0拨号,需要用它来访问网络,可以正常联通

2.搜索并且删除"code-server"

xxx@nt006:/# find / -name "code-server"
/home/xxxx/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/bin/code-server
rm -rf .vscode-server

删除之后重新远端连接,成功

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值