我正在尝试将我的服务器用作 ssh 的“代理”。但是,设置隧道
ssh -D localhost:8000 user@myserver
Run Code Online (Sandbox Code Playgroud)
不起作用。
我使用 ssh 和 putty 在各种机器上对此进行了测试 - 它连接得很好,但是当我相应地设置浏览器设置时,我只会收到错误“连接已重置”。我尝试使用wireshark监控流量,但我什至没有看到一些隧道流量。我明确设置AllowTcpForwarding为“是”,但我仍然无法使用隧道。
在详细模式下运行 ssh 时,我没有收到任何错误,但是
debug1: Connection to port 8000 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: channel 3: free: dynamic-tcpip, nchannels 4
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?