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

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

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

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

Q&A

解決済

1回答

862閲覧

【VScode】【Remote-SSH】サーバーに突然接続できなくなりました。

todayyy

総合スコア31

SSH

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

0グッド

0クリップ

投稿2024/02/03 08:47

実現したいこと

VScodeを使用してサーバー内にあるファイルを直接編集をしたいです。

発生している問題・分からないこと

リモート ホストは、glibc および libstdc++ の VS Code Server の前提条件を満たしていない可能性があります。とログが出力されますが改善策などはありますでしょうか?
Xserverのpublic.htmlなどの編集で突然接続できなくなった要因はわかりません。。。

該当のソースコード

[17:21:36.165] Resolver error: Error: VS Code Server を起動できませんでした at g.ServerInstallError (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460179) at d (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:453522) at t.handleInstallOutput (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:455792) at t.tryInstall (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100) at async c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958 at async t.withShowDetailsEvent (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264) at async k (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923) at async t.resolve (c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635) at async c:\Users\12900k\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794 [17:21:36.167] ------ [17:21:36.272] > [17:21:37.454] "install" terminal command done [17:21:37.454] User entered passphrase [17:21:37.455] Passphrase was entered and ssh config entry was found - adding SSH key to agent [17:21:37.455] Executing add-ssh-key: powershell -ExecutionPolicy Bypass C:\Users\12900k\AppData\Local\Temp\vscode_add_ssh_key_to_agent.ps1 [17:21:37.456] Terminal shell path: C:\WINDOWS\System32\cmd.exe [17:21:37.456] "add-ssh-key" wrote data to terminal: "powershell -ExecutionPolicy Bypass C:\Users\12900k\AppData\Local\Temp\vscode_add_ssh_key_to_agent.ps1" [17:21:37.831] > Microsoft Windows [Version 10.0.22621.3007] > (c) Microsoft Corporation. All rights reserved.C:\Users\12900k>]0;C:\WINDOWS\System32\cmd.exe [17:21:37.846] > (powershell -ExecutionPolicy Bypass C:\Users\12900k\AppData\Local\Temp\vscode_add_ssh_key_to_agent.ps1) & exit /b 0 > ]0;C:\WINDOWS\System32\cmd.exe - powershell -ExecutionPolicy Bypass C:\Users\12900k\AppData\Local\Temp\vscode_add_ssh_key_to_agent.ps1 [17:21:38.091] > PS: adding key to ssh-agent > ssh-add > C:\Users\12900k\keys\cozyclan.key > Error connecting to agent: No such file or directory > 8c1919424cf0##5## [17:21:38.091] ssh-add failed [17:21:38.091] Consider setting up the ssh agent: https://aka.ms/vscode-remote/troubleshooting#_setting-up-the-ssh-agent [17:21:38.113] > ]0;C:\WINDOWS\System32\cmd.exe [17:21:38.113] ssh-add failed [17:21:38.113] Consider setting up the ssh agent: https://aka.ms/vscode-remote/troubleshooting#_setting-up-the-ssh-agent [17:21:39.368] "add-ssh-key" terminal command done [17:21:39.368] Install terminal quit with output:

試したこと・調べたこと

  • teratailやGoogle等で検索した
  • ソースコードを自分なりに変更した
  • 知人に聞いた
  • その他
上記の詳細・結果

PCの再起動・keyの再取得とconfigの再保存、remote-SSH拡張機能のアンインストールなどを行いましたが状況とエラーログは変わらないままでした。
Xサーバー内にあるvscode_serverフォルダを削除して再起動してもダメでした。

補足

特になし

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

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

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

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

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

guest

回答1

0

ベストアンサー

1月にリリースされたVSCode 1.86で、Linux環境におけるglibcの最低バージョンが2.28に引き上げられました。
https://code.visualstudio.com/updates/v1_86#_linux-minimum-requirements-update

Ubuntu 18、CentOS 7やAmazon Linux 2などをベースとしたLinux OSでは利用できなくなります。
上記に該当する場合、サーバーのOSアップデートが行われるまでは1.85を利用するしか無いかと思います。

投稿2024/02/04 07:20

Eggpan

総合スコア2729

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

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

todayyy

2024/02/04 22:08

vscodeを1.86から1.85に変更したところ無事接続ができました。本当にありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.47%

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

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

質問する

関連した質問