
我正在嘗試使用帶有 -D 標誌的 SSH 從網路外部存取聯網 http 資源。我正在使用命令ssh -v -ND 8090 svr
,並svr
在主機檔案中設定為主機。
連線成功建立,但使用代理會導致我的瀏覽器掛起 TLS 握手。有時連接逾時,有時連接成功,但無論哪種方式都是不可用的。
我已經嘗試使用相同的命令為我擁有的不同伺服器建立代理,這工作正常且速度合理,所以我相當確定它不是我的本地電腦。
這是用於尋找主頁的 SSH 的輸出xkcd.com
:
(由於垃圾郵件過濾器不喜歡我而被嚴格修剪)
debug1: Connection to port 8090 forwarding to socks port 0 requested.
debug1: channel 5: new [dynamic-tcpip]
debug1: Connection to port 8090 forwarding to socks port 0 requested.
debug1: channel 6: new [dynamic-tcpip]
debug1: Connection to port 8090 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
debug1: Connection to port 8090 forwarding to socks port 0 requested.
debug1: channel 9: new [dynamic-tcpip]
debug1: channel 5: free: direct-tcpip: listening port 8090 for xkcd.com port 443, connect from 127.0.0.1 port 50477 to 127.0.0.1 port 8090, nchannels 12
debug1: channel 6: free: direct-tcpip: listening port 8090 for xkcd.com port 443, connect from 127.0.0.1 port 50478 to 127.0.0.1 port 8090, nchannels 11
debug1: channel 9: free: direct-tcpip: listening port 8090 for imgs.xkcd.com port 443, connect from 127.0.0.1 port 50489 to 127.0.0.1 port 8090, nchannels 6
debug1: channel 4: free: direct-tcpip: listening port 8090 for imgs.xkcd.com port 443, connect from 127.0.0.1 port 50486 to 127.0.0.1 port 8090, nchannels 4
健康伺服器的輸出看起來幾乎相同。
我究竟做錯了什麼?我在損壞的伺服器上具有 root 存取權限,因此我可以更改 sshd 設定。