
저는 동료들이 로컬 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를 사용하여 동료를 설정하려고 합니다.