#環境
サーバー: windows server 2019
クライアント : mac os
ssh : OpenSSH_8.1p1, LibreSSL 2.7.3
vscode : Version: 1.49.0
現在初めてサーバーでの開発を行おうとしています。
VSCodeのremote-sshを使ってみたくてssh公開鍵認証を設定しました。
ターミナルからのsshコマンドでは接続できるようになっています。
次にvscoddeにremote-sshを入れて「さあ、やるぞ!」ってなったのですが、接続ができません。
お力をお貸しください。
長いですが、接続しようとしたときのoutputです。
[01:42:47.487] Log Level: 2 [01:42:47.489] remote-ssh@0.55.0 [01:42:47.490] darwin x64 [01:42:47.491] SSH Resolver called for "ssh-remote+118-27-78-43", attempt 1 [01:42:47.492] SSH Resolver called for host: 118-27-78-43 [01:42:47.492] Setting up SSH remote "118-27-78-43" [01:42:47.496] Acquiring local install lock: /var/folders/_7/fy71ynp96nd6rvv_2_hh0s_80000gn/T/vscode-remote-ssh-118-27-78-43-install.lock [01:42:47.509] Looking for existing server data file at /Users/xxx/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-118-27-78-43-e790b931385d72cf5669fcefc51cdf65990efa5d-0.55.0/data.json [01:42:47.511] Using commit id "e790b931385d72cf5669fcefc51cdf65990efa5d" and quality "stable" for server [01:42:47.513] Install and start server if needed [01:42:47.519] Checking ssh with "ssh -V" [01:42:47.530] > OpenSSH_8.1p1, LibreSSL 2.7.3 [01:42:47.536] askpass server listening on /var/folders/_7/fy71ynp96nd6rvv_2_hh0s_80000gn/T/vscode-ssh-askpass-fbe060400a80ff65ca4a802af98cdfed2088c5c1.sock [01:42:47.537] Spawning local server with {"ipcHandlePath":"/var/folders/_7/fy71ynp96nd6rvv_2_hh0s_80000gn/T/vscode-ssh-askpass-0827aa769bac0552fca3d564f66049c1bbf77ba7.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","63739","-o","ConnectTimeout=15","118-27-78-43"],"dataFilePath":"/Users/xxx/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-118-27-78-43-e790b931385d72cf5669fcefc51cdf65990efa5d-0.55.0/data.json"} [01:42:47.537] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/_7/fy71ynp96nd6rvv_2_hh0s_80000gn/T/vscode-ssh-askpass-fbe060400a80ff65ca4a802af98cdfed2088c5c1.sock"} [01:42:47.541] Spawned 45874 [01:42:47.664] > local-server> Spawned ssh: 45875 [01:42:47.669] stderr> OpenSSH_8.1p1, LibreSSL 2.7.3 [01:42:48.241] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:uGmXCd/Uohf3pWDLtWdM+cJQXJ9/e35Jg0WzP9eK2aU [01:42:48.447] stderr> Authenticated to 118.27.78.43 ([118.27.78.43]:22). [01:42:49.406] > Windows PowerShell > Copyright (C) Microsoft Corporation. All rights reserved. [01:42:50.140] > PS C:\Users\Administrator> [01:42:50.678] > echo 'ready: 05ba4ba540b4' [01:42:50.713] > ready: 05ba4ba540b4 [01:42:50.764] > PS C:\Users\Administrator> [01:42:50.768] > uname -rsv [01:42:51.237] stderr> uname : �p�� 'uname' �́A�R�}���h���b�g�A���A�X�N���v�g �t�@�C���A�܂��͑���\�ȃv���O�����̖��O�Ƃ��ĔF������܂���B�� [01:42:51.237] stderr> �O���������L�q����Ă��邱�Ƃ��m�F���A�p�X���܂܂�Ă���ꍇ�͂��̃p�X�����������Ƃ��m�F���Ă���A�Ď��s���Ă��������B [01:42:51.238] Platform: windows [01:42:51.238] Remote command length: 7592/8192 characters [01:42:51.239] stderr> �����ꏊ �s:1 ����:1 [01:42:51.239] stderr> + uname -rsv [01:42:51.239] stderr> + ~~~~~ [01:42:51.239] stderr> + CategoryInfo : ObjectNotFound: (uname:String) [], CommandNotFoundException [01:42:51.239] stderr> + FullyQualifiedErrorId : CommandNotFoundException [01:42:51.239] stderr> [01:42:51.325] > PS C:\Users\Administrator> [01:42:51.327] > p [01:42:51.327] > owersh [01:42:51.327] > e [01:42:51.328] > ll -No [01:42:51.328] > Pro [01:42:51.329] > file [01:42:51.329] > [01:42:51.869] > Windows PowerShell > Copyright (C) Microsoft Corporation. All rights reserved. [01:42:52.298] > PS C:\Users\Administrator> [01:42:53.007] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CmVjaG8gIjA1YmE0YmE1NDBiNDogcnVubmluZyIK [01:42:53.008] > JFByb2dyZXNzUHJlZmVyZW5jZT0nU2lsZW50bHlDb250aW51ZScKJGNvbW1pdElkPSdlNzkwYjkzMTM4NWQ3MmNmNTY2OWZjZWZjNTFjZGY2NTk5MGVmYTVkJwokcD0kZW52OlBS [01:42:53.048] > T0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXEgJ0lBNjQnKSkgeyAneDY0JyB9IGVsc2UgeyAnaWEzMicgfQokc2VydmVyUm9vdD0oSm9pbi1QYXRoIChSZXNvbHZlLVBhdGggfikgJy52c2NvZGUtc2VydmVyJy--- 省略---- [01:42:53.050] > 2luLVBhdGggIiRzRGlyIiAidnNjb2RlLXJlbW90ZS1sb2NrL [01:42:53.352] > iRjb21taXRJZCIpCnRyeSB7CiRudWxsPW5pICRsb2NrRmlsZVBhdGggLUl0ZW1UeXBlIEZpbGUgLUVycm9yQWN0aW9uIFNpbGVudG--- 省略----plY2hvICJJbnN0YWxsYXRpb24gYWxyZWFkeSBpbiBwcm9ncmVzcy4uLiAtICQoJF8uVG9TdHJpbmcoKSkiCmVjaG8gIjA1YmE0 [01:42:53.374] > YmE1NDBiNCMjMjQjIyIKcmV0dXJuCn0KdHJ5IHsKZWNobyAiTG9va2luZyBmb3IgZXhpc3Rpbmcgc2VydmVyIGluICRzRGlyIgppZihUZXN0LVBhdGggIiRzRGlyXHNlcnZlci5jbWQiKSB7CmVjaG8gInZzY29kZS1zZXJ2ZXIgYWxyZWFkeSBpbnN0YWxsZWQuIFNraX--- 省略---- XRJZk5lZWRlZApzbGVlcCAzMAp9Cg==')))); powershell -ExecutionPolicy Unre [01:42:53.384] > stricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript" [01:42:56.181] > 05ba4ba540b4: running [01:42:56.182] stderr> #< CLIXML [01:42:57.820] > Acquiring lock on C:\Users\Administrator.vscode-server\bin\e790b931385d72cf5669fcefc51cdf65990efa5d\vscode-remote-lock.e790b931385d72cf5669fcefc51cdf65990efa5d > Looking for existing server in C:\Users\Administrator.vscode-server\bin\e790b931385d72cf5669fcefc51cdf65990efa5d > vscode-server already installed. Skipping download... [01:42:57.838] > Starting server with command... & 'C:\Users\Administrator.vscode-server\bin\e790b931385d72cf5669fcefc51cdf65990efa5d\server.cmd' --host=127.0.0.1 --enable-remote-auto-shutdown --port=0 *> 'C:\Users\Administrator.vscode-server.e790b931385d72cf5669fcefc51cdf65990efa5d.log' [01:43:02.265] > Server did not start successfully. Full server log at C:\Users\Administrator.vscode-server.e790b931385d72cf5669fcefc51cdf65990efa5d.log >>> [01:43:02.266] > [01:43:02.281] > <<< End of server log > 05ba4ba540b4##32## [01:43:02.282] Received install output: 05ba4ba540b4##32## [01:43:02.282] Terminating local server [01:43:02.290] Resolver error: Error: The VS Code Server failed to start at Function.ExitCode (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:1:130495) at Object.t.handleInstallOutput (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:1:128732) at Object.t.tryInstallWithLocalServer (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:102339) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async /Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:104310 at async Object.t.withShowDetailsEvent (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:109845) at async /Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:100912 at async R (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:97702) at async Object.t.resolveWithLocalServer (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:100561) at async Object.t.resolve (/Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:107840) at async /Users/xxx/.vscode/extensions/ms-vscode-remote.remote-ssh-0.55.0/out/extension.js:127:141955 [01:43:02.296] ------
結果は
Could not establish connection to "118-27-78-43": The VS Code Server failed to start.
Server did not start successfully. Full server log at C:\Users\Administrator.vscode-server.e790b931385d72cf5669fcefc51cdf65990efa5d.log >>>
とあったので、logがあるかなと開けたら中身は空でした
いまいち、何が原因かも読み解けません。
Starting server with command... & 'C:\Users\Administrator.vscode-server\bin\e790b931385d72cf5669fcefc51cdf65990efa5d\server.cmd'
これを実行して失敗ってことなんでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。