他のPCからsshでwindows10home端末に接続したい。
これらの端末があります:
- windows10home pc(A)
- pixelbook chromeos / linux(B)
私はこれらのことを試しました:
- Aのユーザー名、パスワード、IPv4アドレスは正確です。
- したがって、sshコマンドを使用してAのPowerShellでAにログインできます。
- そして私は,sshコマンドを使用してBのbashターミナルでAにsshログインすることができました
- しかし、sshコマンドを使用してBのvscodeのRemote DevelopmentからAにログインできませんでした。vscodeはすでに「リモート開発」をインストールしています。
- Bは実行されていますpixelbook-chromebook / debian
写真のように,B端末のbashターミナルではログインできましたが
Remote Developmentからはログインできませんでした.
BのVSCodeは次のような記載を表示しました
[23:43:44.195] Log Level: 2 [23:43:44.198] remote-ssh@0.65.4 [23:43:44.199] linux x64 [23:43:44.201] SSH Resolver called for "ssh-remote+192.168.0.102", attempt 1 [23:43:44.201] "remote.SSH.useLocalServer": true [23:43:44.202] "remote.SSH.path": undefined [23:43:44.202] "remote.SSH.configFile": undefined [23:43:44.202] "remote.SSH.useFlock": true [23:43:44.202] "remote.SSH.lockfilesInTmp": false [23:43:44.202] "remote.SSH.localServerDownload": auto [23:43:44.202] "remote.SSH.remoteServerListenOnSocket": false [23:43:44.203] "remote.SSH.showLoginTerminal": false [23:43:44.203] "remote.SSH.defaultExtensions": [] [23:43:44.203] "remote.SSH.loglevel": 2 [23:43:44.203] SSH Resolver called for host: 192.168.0.102 [23:43:44.203] Setting up SSH remote "192.168.0.102" [23:43:44.207] Acquiring local install lock: /tmp/vscode-remote-ssh-192.168.0.102-install.lock [23:43:44.231] Looking for existing server data file at /home/universe/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.0.102-3c4e3df9e89829dce27b7b5c24508306b151f30d-0.65.4/data.json [23:43:44.232] Using commit id "3c4e3df9e89829dce27b7b5c24508306b151f30d" and quality "stable" for server [23:43:44.237] Install and start server if needed [23:43:44.251] PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games [23:43:44.251] Checking ssh with "ssh -V" [23:43:44.306] > OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 10 Sep 2019 [23:43:44.324] askpass server listening on /run/user/1000/vscode-ssh-askpass-6edc176403c7cb070b8555c1af32221b15db0be9.sock [23:43:44.325] Spawning local server with {"ipcHandlePath":"/run/user/1000/vscode-ssh-askpass-98ba32d1575912fae9845121713139f3175f3345.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","35837","-o","ConnectTimeout=15","192.168.0.102"],"dataFilePath":"/home/universe/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.0.102-3c4e3df9e89829dce27b7b5c24508306b151f30d-0.65.4/data.json"} [23:43:44.325] Local server env: {"DISPLAY":":0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/universe/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.4/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_MAIN":"/home/universe/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.4/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/vscode-ssh-askpass-6edc176403c7cb070b8555c1af32221b15db0be9.sock"} [23:43:44.345] Spawned 1930 [23:43:44.641] > local-server> Spawned ssh: 1938 [23:43:44.651] stderr> OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 10 Sep 2019 [23:43:44.806] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:WhFjwQ6+ws5aRRTp1IPqkkbGwTFnIrquPeChF/g4z/8 [23:43:45.081] Got askpass request: {"request":"resta@192.168.0.102's password:"} [23:43:45.084] Showing password prompt [23:43:45.089] Listening for interwindow password on /run/user/1000/vscode-ssh-askpass-9ba4411590900561bb58a4efcdf59594eaa9e42e.sock [23:43:45.089] Writing password prompt to globalState [23:44:01.037] Password dialog canceled [23:44:01.037] Interactor signaled cancel [23:44:01.038] Cleaning up other-window auth server [23:44:01.099] stderr> Permission denied, please try again. [23:44:01.267] Got askpass request: {"request":"resta@192.168.0.102's password:"} [23:44:01.293] stderr> Permission denied, please try again. [23:44:01.464] Got askpass request: {"request":"resta@192.168.0.102's password:"} [23:44:01.515] stderr> resta@192.168.0.102: Permission denied (publickey,password,keyboard-interactive). [23:44:01.517] > local-server> ssh child died, shutting down [23:44:01.523] Local server exit: 0 [23:44:01.524] Received install output: OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 10 Sep 2019 debug1: Server host key: ecdsa-sha2-nistp256 SHA256:WhFjwQ6+ws5aRRTp1IPqkkbGwTFnIrquPeChF/g4z/8 Permission denied, please try again. Permission denied, please try again. resta@192.168.0.102: Permission denied (publickey,password,keyboard-interactive). [23:44:01.537] Resolver error: Error: Permission denied (publickey,password,keyboard-interactive). at Function.Create (/home/universe/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.4/out/extension.js:1:64641) at /home/universe/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.4/out/extension.js:1:62835 at Object.t.handleInstallOu
追記1:
なお,以下のことも完了しておりましたので追記させていただきます.
こちら
https://wet-to-dry.hatenablog.com/entry/2020/03/19/230729
を参照に
A(サーバー側にあたるwindows10home)では
・OpenSSHサーバーアプリの起動
・22ポートの開放
・sshdサービスの起動
・サーバー側でPowerShellが起動するようOpenSSHレジストリを変更
こちらが完了しておりました.追記させてください.
接続するために必要な事があれば,教えていただけると幸いです.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/05/03 01:42 編集
2021/05/03 03:30
2021/05/03 07:46
2021/05/04 00:06 編集
2021/05/04 11:27
2021/05/04 21:59