VSCode リモート SSH 接続に失敗しました 質問する

VSCode リモート SSH 接続に失敗しました 質問する

Remote-SSH 拡張機能を使用して Debian サーバー上のファイルを編集しようとしています。SSH 接続は正しく確立されますが、エラー メッセージが表示されます:

Failed to connect to the remote extension host server

そしてログ:

[13:19:04.182] Remote server is listening on port 51569
[13:19:04.182] Parsed server configuration: {"agentPort":51569,"osReleaseId":"debian","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/tmp"}
[13:19:04.184] Starting forwarding server. localPort 59828 -> socksPort 59825 -> remotePort 51569
[13:19:04.185] Forwarding server listening on 59828
[13:19:04.185] Waiting for ssh tunnel to be ready
[13:19:04.186] Tunneled remote port 51569 to local port 59828
[13:19:04.186] Resolved "ssh-remote+home-debian.web-data.host" to "127.0.0.1:59828"
[13:19:04.187] [Forwarding server 59828] Got connection 0
[13:19:04.195] ------
[13:19:04.208] [Forwarding server 59828] Got connection 1
[13:19:04.208] [Forwarding server 59828] Got connection 2
[13:19:04.217] Failed to set up socket for dynamic port forward to remote port 51569: Socket closed. Is the remote port correct?
[13:19:04.227] > channel 3: open failed: administratively prohibited: open failed
[13:19:04.235] Failed to set up socket for dynamic port forward to remote port 51569: Socket closed. Is the remote port correct?
[13:19:04.237] Failed to set up socket for dynamic port forward to remote port 51569: Socket closed. Is the remote port correct?
[13:19:04.241] > channel 4: open failed: administratively prohibited: open failed
> channel 5: open failed: administratively prohibited: open failed

私は他のいくつかのサーバーでリモート SSH 接続を使用していますが、このエラーは一度も発生していません。Web から収集したいくつかのことをテストしましたが、今のところ何も機能していません。

誰か、この問題の原因や解決策を教えていただけませんか? よろしくお願いします!

ベストアンサー1

sshd_configでAllowTcpForwardingから に変更して再起動すると、正常に動作します。noyessshd

テスト済みRaspbian GNU/Linux 10 (buster)

おすすめ記事