野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 18594|回复: 6

[求助] vscode ssh登录开发板不成功

[复制链接]
发表于 2021-3-30 10:54:01 | 显示全部楼层 |阅读模式
按照教程操作。用MobaXterm_Personal_21.0可以登录。
但用虚拟机ubtntu上的vscode remote_ssh,无论怎么试都不行。看代码提示说是找不到libatomic.so.1,可是系统lib下是有这文件的。
今天装了win10版的vscode,一样也不行,错误也是一样的。


[10:04:31.307] Log Level: 2
[10:04:31.310] remote-ssh@0.65.1
[10:04:31.310] linux x64
[10:04:31.311] SSH Resolver called for "ssh-remote+192.168.0.110", attempt 1
[10:04:31.312] "remote.SSH.useLocalServer": true
[10:04:31.313] "remote.SSH.sshPath": undefined
[10:04:31.313] "remote.SSH.sshConfigurationFile": undefined
[10:04:31.313] "remote.SSH.useFlock": true
[10:04:31.314] "remote.SSH.lockfilesInTmp": false
[10:04:31.314] "remote.SSH.localServerDownload": auto
[10:04:31.314] "remote.SSH.remoteServerListenOnSocket": false
[10:04:31.316] "remote.SSH.showLoginTerminal": false
[10:04:31.316] "remote.SSH.defaultExtensions": []
[10:04:31.316] SSH Resolver called for host: 192.168.0.110
[10:04:31.316] Setting up SSH remote "192.168.0.110"
[10:04:31.325] Acquiring local install lock: /tmp/vscode-remote-ssh-192.168.0.110-install.lock
[10:04:31.346] Looking for existing server data file at /home/eaton/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.0.110-2b9aebd5354a3629c3aba0a5f5df49f43d6689f8-0.65.1/data.json
[10:04:31.347] Using commit id "2b9aebd5354a3629c3aba0a5f5df49f43d6689f8" and quality "stable" for server
[10:04:31.359] Install and start server if needed
[10:04:31.366] Checking ssh with "ssh -V"
[10:04:31.383] > OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017

[10:04:31.413] askpass server listening on /run/user/1000/vscode-ssh-askpass-683fe245f1b257bf8b6eba56901b375d65030a43.sock
[10:04:31.420] Spawning local server with {"ipcHandlePath":"/run/user/1000/vscode-ssh-askpass-f6065b34d7a64b79ad484cedd2409abab815a1a0.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","40723","-o","ConnectTimeout=15","192.168.0.110"],"dataFilePath":"/home/eaton/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.0.110-2b9aebd5354a3629c3aba0a5f5df49f43d6689f8-0.65.1/data.json"}
[10:04:31.420] Local server env: {"DISPLAY":":0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/eaton/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_MAIN":"/home/eaton/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/vscode-ssh-askpass-683fe245f1b257bf8b6eba56901b375d65030a43.sock"}
[10:04:31.447] Spawned 5961
[10:04:31.674] > local-server> Spawned ssh: 5969
[10:04:31.679] stderr> OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
[10:04:31.847] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:x5IjHShX6VcQyz828wrQgrVF/dibf4KIvNkFz6at9FY
[10:04:31.893] stderr> Debian GNU/Linux 10
[10:04:31.893] stderr>
[10:04:31.893] stderr> embedfire.com Debian Image 2021-03-19
[10:04:31.894] stderr>
[10:04:31.894] stderr> Support/FAQ: www.firebbs.cn/forum.php
[10:04:31.894] stderr>
[10:04:31.894] stderr> default username:password is [debian:temppwd]
[10:04:31.894] stderr>
[10:04:32.065] Got askpass request: {"request":"debian@192.168.0.110's password:"}
[10:04:32.073] Showing password prompt
[10:04:32.080] Listening for interwindow password on /run/user/1000/vscode-ssh-askpass-1101f54b759f8a4f46b0a56fb913799ab529b4d9.sock
[10:04:32.080] Writing password prompt to globalState
[10:04:36.372] Got password response
[10:04:36.373] Interactor gave response: *******
[10:04:36.373] Cleaning up other-window auth server
[10:04:36.502] stderr> Authenticated to 192.168.0.110 ([192.168.0.110]:22).
[10:04:36.607] >
> The programs included with the Debian GNU/Linux system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
[10:04:36.635] > ready: 02d39bec7732
[10:04:36.645] > Linux 4.19.35-imx6 #2.2LubanCat SMP PREEMPT Fri Mar 19 14:38:55 CST 2021
[10:04:36.645] Platform: linux
[10:04:36.731] > 02d39bec7732: running
[10:04:37.028] > Acquiring lock on /home/debian/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/vscode-remote-lock.debian.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
[10:04:37.061] > Found existing installation at /home/debian/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8...
[10:04:37.062] > Checking /home/debian/.vscode-server/.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8.log and /home/debian/.vscode-server/.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8.pid for a running server
[10:04:37.073] > Looking for server with pid: 3056
[10:04:37.191] > Starting server with command... /home/debian/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/server.sh --start-server --host=127.0.0.1 --enable-remote-auto-shutdown  --port=0  &> "/home/debian/.vscode-server/.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8.log" < /dev/null
> printenv:
[10:04:37.210] >     SHELL=/bin/bash
>     PWD=/home/debian
>     LOGNAME=debian
>     HOME=/home/debian
>     LANG=zh_CN.UTF-8
>     VSCODE_AGENT_FOLDER=/home/debian/.vscode-server
>     SSH_CONNECTION=192.168.0.111 42412 192.168.0.110 22
>     USER=debian
>     SHLVL=1
>     SSH_CLIENT=192.168.0.111 42412 22
>     PATH=/home/debian/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
>     MAIL=/var/mail/debian
>     _=/usr/bin/printenv
[10:04:37.253] > Spawned remote server: 3632
[10:04:37.319] > Waiting for server log...
[10:04:37.424] > Waiting for server log...
[10:04:37.518] > Waiting for server log...
[10:04:37.625] > Waiting for server log...
[10:04:37.727] > Waiting for server log...
[10:04:37.828] > Waiting for server log...
[10:04:37.927] > Waiting for server log...
[10:04:38.025] > Waiting for server log...
[10:04:38.124] > Waiting for server log...
[10:04:38.227] > Waiting for server log...
[10:04:38.328] > Waiting for server log...
[10:04:38.433] > Waiting for server log...
[10:04:38.536] > Waiting for server log...
[10:04:38.634] > Waiting for server log...
[10:04:38.733] > Waiting for server log...
[10:04:38.830] > Waiting for server log...
[10:04:38.929] > Waiting for server log...
[10:04:39.048] > Waiting for server log...
[10:04:39.154] > Waiting for server log...
[10:04:39.257] > Waiting for server log...
[10:04:39.378] > Waiting for server log...
[10:04:39.464] > Waiting for server log...
[10:04:39.566] > Waiting for server log...
[10:04:39.667] > Waiting for server log...
[10:04:39.768] > Waiting for server log...
[10:04:39.864] > Waiting for server log...
[10:04:39.963] > Waiting for server log...
[10:04:40.058] > Waiting for server log...
[10:04:40.163] > Waiting for server log...
[10:04:40.266] > Waiting for server log...
[10:04:40.367] > Waiting for server log...
[10:04:40.469] > Waiting for server log...
[10:04:40.566] > Waiting for server log...
[10:04:40.668] > Waiting for server log...
[10:04:40.766] > Waiting for server log...
[10:04:40.864] > Waiting for server log...
[10:04:40.962] > Waiting for server log...
[10:04:41.062] > Waiting for server log...
[10:04:41.158] > Waiting for server log...
[10:04:41.263] > Waiting for server log...
[10:04:41.367] > Waiting for server log...
[10:04:41.468] > Waiting for server log...
[10:04:41.574] > Waiting for server log...
[10:04:41.676] > Waiting for server log...
[10:04:41.778] > Waiting for server log...
[10:04:41.877] > Waiting for server log...
[10:04:41.977] > Waiting for server log...
[10:04:42.077] > Waiting for server log...
[10:04:42.172] > Waiting for server log...
[10:04:42.268] > Waiting for server log...
[10:04:42.374] > Waiting for server log...
[10:04:42.476] > Waiting for server log...
[10:04:42.576] > Waiting for server log...
[10:04:42.675] > Waiting for server log...
[10:04:42.770] > Waiting for server log...
[10:04:42.874] > Waiting for server log...
[10:04:42.977] > Waiting for server log...
[10:04:43.077] > Waiting for server log...
[10:04:43.178] > Waiting for server log...
[10:04:43.279] > Waiting for server log...
[10:04:43.398] > Waiting for server log...
[10:04:43.503] > Waiting for server log...
[10:04:43.606] > Waiting for server log...
[10:04:43.708] > Waiting for server log...
[10:04:43.813] > Waiting for server log...
[10:04:43.917] > Waiting for server log...
[10:04:44.018] > Waiting for server log...
[10:04:44.120] > Waiting for server log...
[10:04:44.217] > Waiting for server log...
[10:04:44.315] > Waiting for server log...
[10:04:44.409] > Waiting for server log...
[10:04:44.514] > Waiting for server log...
[10:04:44.616] > Waiting for server log...
[10:04:44.717] > Waiting for server log...
[10:04:44.815] > Waiting for server log...
[10:04:44.912] > Waiting for server log...
[10:04:45.008] > Waiting for server log...
[10:04:45.080] >  
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>  
[10:04:45.174] > Server did not start successfully. Full server log at /home/debian/.vscode-server/.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8.log >>>
[10:04:45.181] > /home/debian/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
[10:04:45.186] > <<< End of server log

回复

使用道具 举报

发表于 2021-4-2 13:42:01 | 显示全部楼层
本帖最后由 wx_bpeAXOq9 于 2021-4-6 15:54 编辑

使用vs code的ssh登录板子好像存在些问题
回复 支持 反对

使用道具 举报

发表于 2021-4-2 13:42:36 | 显示全部楼层
建议换个工具
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-4-5 21:12:51 | 显示全部楼层
教程推荐说用VS CODE,又都用VS CODE来演示。。。这不是误导人嘛
回复 支持 反对

使用道具 举报

发表于 2021-4-6 08:55:24 | 显示全部楼层
qhg2000 发表于 2021-4-5 21:12
教程推荐说用VS CODE,又都用VS CODE来演示。。。这不是误导人嘛

VS code应该是推荐用于开发程序吧......没见过ssh推荐用Vs code的...
回复 支持 反对

使用道具 举报

发表于 2021-4-12 22:00:56 | 显示全部楼层
qhg2000 发表于 2021-4-5 21:12
教程推荐说用VS CODE,又都用VS CODE来演示。。。这不是误导人嘛

vscode remote-ssh插件目前只支持特殊几个成熟的发行版,centos 7、ubuntu16.04以上、树莓派raspibian、Debian,不支持这种嵌入式系统的。
回复 支持 反对

使用道具 举报

发表于 2021-5-28 15:55:26 | 显示全部楼层
查询一下相应的 Log 是否因为没有安装这个包?   libatomic1  
https://packages.debian.org/buster/libatomic1

报错信息:
  1. error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
复制代码

解决方案:

  1. apt install libatomic1  
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-23 15:30 , Processed in 0.042741 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表