
Ubuntu サーバーを使用して、 経由でリモート ポート転送を実行しようとしていますssh
。
/etc/ssh/sshd_config
ファイルの下部に次の行を追加するように編集しました。
...
Match User david
GatewayPorts yes
AllowTcpForwarding yes
次に、サーバーを再起動し、ログインして次のコマンドを実行して、構成が機能するかどうかをテストしてみました。
sshd -T | grep -E 'gatewayports|allowtcpforwarding'
残念ながら結果は次のとおりです。
gatewayports no
allowtcpforwarding yes
これを有効にして、リモート ポート転送を使用してローカル アプリケーションをリモートでテストできるようにするには、何が足りないのでしょうか?
ssh -R 8080:localhost:8080 [email protected]
関連している:
答え1
sshd -T -C user=david,host=localhost,addr=127.0.0.1 \
| grep -E 'gatewayports|allowtcpforwarding'
ユーザーに正しい値を返す必要があります。