
私は同僚がローカル PC からリモート開発サーバーへのリバース SSH トンネルを作成できるように支援しようとしています。
リバース SSH トンネルは私にとっては完璧に機能します。しかし、彼らにとっては機能しません。
実行しているコマンドは次のようになります。
ssh -v -R 9000:localhost:9000 [email protected]
出力例は以下のとおりです
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 9000, originator ::1 port 36142
debug1: getsockopt TCP_NODELAY: Invalid argument
debug1: connect_next: host localhost ([::1]:9000) in progress, fd=8
debug1: channel 1: new [::1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connection failed: Connection refused
debug1: getsockopt TCP_NODELAY: Invalid argument
debug1: connect_next: connect host localhost ([::1]:9000) in progress, fd=9
connect_to localhost port 9000: failed
debug1: channel 1: free: ::1, nchannels 2
私が得た出力との比較
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 9001, originator ::1 port 59996
debug1: connect_next: start for host localhost ([::1]:9001)
debug1: getsockopt TCP_NODELAY: Invalid argument
debug1: connect_next: connect host localhost ([::1]:9001) in progress, fd=8
debug1: channel 1: new [::1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connection failed: Connection refused
debug1: connect_next: start for host localhost ([127.0.0.1]:9001)
debug1: connect_next: connect host localhost ([127.0.0.1]:9001) in progress, fd=9
debug1: channel 1: connected to localhost port 9001
debug1: channel 1: free: ::1, nchannels 2
私が見た主な違いは、私の出力では IP が v4 に変更されるのに対し、彼らの出力では IP が V6 のままであることです。ポート番号は意図的に異なっています (彼らは 9000 を使用し、私は 9001 を使用します)
ファイアウォールに問題がある可能性に備えて、Windows Defender を完全にオフにしてみましたが、ダメでした。
Git Bash でコマンドを実行しています。which bash
が返されます/usr/bin/bash
。 違いがある場合は、リモート サーバーで同僚に Xdebug を設定してもらおうとしています。