質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
SSH

SSH(Secure Shell)は、セキュアチャネルを通してデータを交換するためのネットワークプロトコルです。リモートサーバーへのコマンド実行やファイル転送を行う時に一般的に使用されます。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ネットワーク

ネットワークとは、複数のコンピューター間を接続する技術です。インターネットが最も主流なネットワークの形態で、TCP/IP・HTTP・DNSなどの様々なプロトコルや、ルータやサーバーなどの様々な機器の上に成り立っています。

Q&A

0回答

2773閲覧

VScodeでRemote-SSHを利用したいが'No such file or directory'などのエラーが出て利用できない.

tat1234

総合スコア4

SSH

SSH(Secure Shell)は、セキュアチャネルを通してデータを交換するためのネットワークプロトコルです。リモートサーバーへのコマンド実行やファイル転送を行う時に一般的に使用されます。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ネットワーク

ネットワークとは、複数のコンピューター間を接続する技術です。インターネットが最も主流なネットワークの形態で、TCP/IP・HTTP・DNSなどの様々なプロトコルや、ルータやサーバーなどの様々な機器の上に成り立っています。

0グッド

0クリップ

投稿2021/11/08 07:11

前提・実現したいこと

Ubuntu server 20.04.3をラズベリーパイで動作させとりあえずVScodeを用いた快適な環境構築をしたいです.

発生している問題・エラーメッセージ

VisualStudioCode のRemote-SSHを利用しUbuntu上のファイルにアクセスしたいのですが,何度やってもエラーが出ます.長くなってしまい,申し訳ありません.

[15:25:21.700] Log Level: 2 [15:25:21.722] remote-ssh@0.66.0 [15:25:21.723] win32 x64 [15:25:21.740] SSH Resolver called for "ssh-remote+robot", attempt 1 [15:25:21.741] "remote.SSH.useLocalServer": false [15:25:21.743] "remote.SSH.showLoginTerminal": false [15:25:21.744] "remote.SSH.remotePlatform": {} [15:25:21.744] "remote.SSH.path": undefined [15:25:21.745] "remote.SSH.configFile": undefined [15:25:21.745] "remote.SSH.useFlock": true [15:25:21.746] "remote.SSH.lockfilesInTmp": false [15:25:21.747] "remote.SSH.localServerDownload": auto [15:25:21.748] "remote.SSH.remoteServerListenOnSocket": false [15:25:21.749] "remote.SSH.showLoginTerminal": false [15:25:21.750] "remote.SSH.defaultExtensions": [] [15:25:21.751] "remote.SSH.loglevel": 2 [15:25:21.753] SSH Resolver called for host: robot [15:25:21.754] Setting up SSH remote "robot" [15:25:21.825] Using commit id "b3318bc0524af3d74034b8bb8a64df0ccf35549a" and quality "stable" for server [15:25:21.840] Install and start server if needed [15:25:23.350] Checking ssh with "ssh -V" [15:25:23.420] > OpenSSH_for_Window [15:25:23.421] > s_8.1p1, LibreSSL 3.0.2 [15:25:23.438] Running script with connection command: ssh -T -D 55347 robot bash [15:25:23.453] Terminal shell path: C:\WINDOWS\System32\cmd.exe [15:25:24.080] > ]0;C:\WINDOWS\System32\cmd.exe [15:25:24.082] Got some output, clearing connection timeout [15:25:24.361] > user@192.168.137.100's password: [15:25:24.363] Showing password prompt [15:25:27.763] Got password response [15:25:27.764] "install" wrote data to terminal: "**************" [15:25:27.784] > [15:25:32.434] > 6aefac75963f: running [15:25:32.607] > Acquiring lock on /home/user/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0cc > f35549a/vscode-remote-lock.tat.b3318bc0524af3d74034b8bb8a64df0ccf35549a [15:25:32.619] > Installing to /home/user/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf355 > 49a... > 6aefac75963f%%1%% > Downloading with wget [15:26:28.268] > Download complete [15:26:28.283] > 6aefac75963f%%2%% > tar --version: > tar (GNU tar) 1.30 > Copyright (C) 2017 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > Written by John Gilmore and Jay Fenlason. [15:26:39.504] > Checking /home/user/.vscode-server/.b3318bc0524af3d74034b8bb8a64df0ccf35549a.log > and /home/user/.vscode-server/.b3318bc0524af3d74034b8bb8a64df0ccf35549a.pid for a > running server [15:26:39.595] > Starting server with command... /home/user/.vscode-server/bin/b3318bc0524af3d7403 > 4b8bb8a64df0ccf35549a/server.sh --start-server --host=127.0.0.1 --enable-remote- > auto-shutdown --port=0 &> "/home/user/.vscode-server/.b3318bc0524af3d74034b8bb8 > a64df0ccf35549a.log" < /dev/null > printenv: > SHELL=/bin/bash > PWD=/home/user > LOGNAME=user > XDG_SESSION_TYPE=tty > MOTD_SHOWN=pam > HOME=/home/user > LANG=C.UTF-8 [15:26:39.596] > > VSCODE_AGENT_FOLDER=/home/user/.vscode-server > SSH_CONNECTION=192.168.137.1 55349 192.168.137.100 22 > XDG_SESSION_CLASS=user > USER=user > SHLVL=0 > XDG_SESSION_ID=8 > XDG_RUNTIME_DIR=/run/user/1001 > SSH_CLIENT=192.168.137.1 55349 22 > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > :/usr/local/games:/snap/bin > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus > OLDPWD=/home/user/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf35549a > _=/usr/bin/printenv [15:26:39.619] > rm: cannot remove '/home/user/.vscode-server/.b3318bc0524af3d74034b8bb8a64df0ccf3 > 5549a.token': No such file or directory [15:26:39.633] > [15:26:43.275] > Spawned remote server: 3342 [15:26:43.354] > Waiting for server log... -省略- [15:26:43.570] > Waiting for server log... > Waiting for server log... [15:26:43.590] > [15:26:43.609] > Waiting for server log... -省略- [15:26:48.907] > Waiting for server log... > Waiting for server log... [15:26:48.913] > > Waiting for server log... [15:26:48.925] > Waiting for server log... -省略- [15:26:48.977] > Waiting for server log... [15:26:50.851] > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [15:26:50.871] > > Server did not start successfully. Full server log at /home/user/.vscode-server/. > b3318bc0524af3d74034b8bb8a64df0ccf35549a.log >>> [15:26:50.891] > > /home/user/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf35549a/node: erro > r while loading shared libraries: libatomic.so.1: cannot open shared object file > : No such file or directory > <<< End of server log > 6aefac75963f: start [15:26:50.894] > > exitCode==32== > listeningOn==== > osReleaseId==ubuntu== > arch==armv7l== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==success== > didLocalDownload==0== [15:26:50.898] > > downloadTime==55652== > installTime==11168== > extInstallTime==== > serverStartTime==11268== > 6aefac75963f: end [15:26:50.899] Received install output: exitCode==32== listeningOn==== osReleaseId==ubuntu== arch==armv7l== tmpDir==/run/user/1001== platform==linux== unpackResult==success== didLocalDownload==0== downloadTime==55652== installTime==11168== extInstallTime==== serverStartTime==11268== [15:26:50.904] Resolver error: Error: The VS Code Server failed to start at Function.ServerInstallError (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:429127) at u (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:423450) at Object.t.handleInstallOutput (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:427869) at Object.t.tryInstall (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:521609) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:485262 at async Object.t.withShowDetailsEvent (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:488612) at async Object.t.resolve (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:486341) at async c:\Users\user.vscode\extensions\ms-vscode-remote.remote-ssh-0.66.0\out\extension.js:1:559963 [15:26:50.909] > [15:26:50.925] ------ [15:26:52.344] "install" terminal command done [15:26:52.348] Install terminal quit with output:

試したこと

/home/user/.vscode-serverを削除しようと思い
ユーザーでログイン>sudo suでrootにスイッチ>tree
を実行したところ.vscode-serverはありませんでした.

一度rootのsshを許可し,rootから接続を試みましたが同じエラーでした.

ping google.comは応答しました.

teratermではssh接続できます.

補足情報(FW/ツールのバージョンなど)

ネットワークはノートパソコンのホットスポットを利用しています.
ユーザー名のところはuserに変更しました.
linuxやCUIはまだまだ不慣れでよくわからないことが多いですが,やさしく教えていただけると幸いです.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

dameo

2021/11/09 08:47

ラズベリーパイは持ってないのでよく分かりませんが、エラーは [15:26:50.904] Resolver error: Error: The VS Code Server failed to start これが主要因のようです。VS Code Serverとはこういうものです。 https://code.visualstudio.com/docs/remote/faq#_how-do-the-remote-development-extensions-work これがコケてるとssh出来ても全ての機能が動きません。 VS Code Serverの起動ログ上は [15:26:50.891] > > /home/user/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf35549a/node: erro > r while loading shared libraries: libatomic.so.1: cannot open shared object file > : No such file or directory とあり、libatomic.so.1というライブラリが見つからないと言われています。 なので、ubuntu上で sudo apt install -y libatomic1 としてライブラリをインストールして試してみたら現象が変わる可能性があります。 ご参考までに。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問