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

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

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

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

Q&A

解決済

1回答

9285閲覧

VSCodeからssh接続ができない。

konaga999

総合スコア2

Linux

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

0グッド

0クリップ

投稿2021/08/25 23:17

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

VScodeからローカルのCentOS7に何度試してもRemote SSHできません。 teratarmからは接続できることが確認できております。 他のHPなどで調査しましたが、原因がわかりません。 VSコードのターミナルログから何かおわかりになるでしょうか。

該当のエラー

[08:08:09.651] Log Level: 2 [08:08:09.654] remote-ssh@0.65.7 [08:08:09.654] win32 x64 [08:08:09.656] SSH Resolver called for "ssh-remote+remotessh", attempt 1 [08:08:09.656] "remote.SSH.useLocalServer": false [08:08:09.656] "remote.SSH.showLoginTerminal": false [08:08:09.656] "remote.SSH.remotePlatform": {} [08:08:09.657] "remote.SSH.path": undefined [08:08:09.657] "remote.SSH.configFile": undefined [08:08:09.657] "remote.SSH.useFlock": true [08:08:09.657] "remote.SSH.lockfilesInTmp": false [08:08:09.657] "remote.SSH.localServerDownload": auto [08:08:09.657] "remote.SSH.remoteServerListenOnSocket": false [08:08:09.658] "remote.SSH.showLoginTerminal": false [08:08:09.658] "remote.SSH.defaultExtensions": [] [08:08:09.658] "remote.SSH.loglevel": 2 [08:08:09.658] SSH Resolver called for host: remotessh [08:08:09.658] Setting up SSH remote "remotessh" [08:08:09.682] Using commit id "3866c3553be8b268c8a7f8c0482c0c0177aa8bfa" and quality "stable" for server [08:08:09.688] Install and start server if needed [08:08:13.208] Checking ssh with "ssh -V" [08:08:13.252] > OpenSSH_for_Window [08:08:13.253] > s_8.1p1, LibreSSL 3.0.2 [08:08:13.259] Running script with connection command: ssh -T -D 53470 remotessh bash [08:08:13.262] Terminal shell path: C:\WINDOWS\System32\cmd.exe [08:08:13.483] > ]0;C:\WINDOWS\System32\cmd.exe [08:08:13.484] Got some output, clearing connection timeout [08:08:13.585] > konaga@192.168.1.100's password: [08:08:13.586] Showing password prompt [08:08:18.323] Got password response [08:08:18.323] "install" wrote data to terminal: "********" [08:08:18.339] > [08:08:18.447] > 977527e24fc8: running [08:08:18.497] > Acquiring lock on /home/konaga/.vscode-server/bin/3866c3553be8b268c8a7f8c0482c0c > 0177aa8bfa/vscode-remote-lock.konaga.3866c3553be8b268c8a7f8c0482c0c0177aa8bfa [08:08:18.508] > Installation already in progress... > If you continue to see this message, you can try toggling the remote.SSH.useFloc > k setting > 977527e24fc8: start > exitCode==24== > listeningOn==== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1000== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 977527e24fc8: end [08:08:18.509] Received install output: exitCode==24== listeningOn==== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [08:08:18.509] Server installation process already in progress - waiting and retrying [08:08:19.765] "install" terminal command done [08:08:19.766] Install terminal quit with output: [08:08:37.409] Running script with connection command: ssh -T -D 53470 remotessh bash [08:08:37.411] Terminal shell path: C:\WINDOWS\System32\cmd.exe [08:08:37.631] > ]0;C:\WINDOWS\System32\cmd.exe [08:08:37.631] Got some output, clearing connection timeout [08:08:37.728] > konaga@192.168.1.100's password: [08:08:37.729] Showing password prompt [08:08:41.642] Password dialog canceled [08:08:41.643] "install" terminal command canceled [08:08:41.644] Resolver error: Error: Connecting was canceled at Function.Canceled (c:\Users\konaga.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:64855) at c:\Users\konaga.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:414488 at processTicksAndRejections (internal/process/task_queues.js:93:5) [08:08:41.654] ------

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

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

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

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

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

guest

回答1

0

自己解決

VSCodeのファイル→ユーザー設定→設定から、Config FileにC:/Users/<PCのユーザ名>.ssh\configを入れることで解決しました。

お手数おかけしました。

投稿2021/08/25 23:40

konaga999

総合スコア2

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問