如何解决通过EC2实例之间的SSH隧道通过袜子代理进行的卷曲失败:“卷曲:7无法接收SOCKS5连接请求确认”
在AWS中两个EC2实例之间通过简单的SSH隧道设置袜子代理时,我看到卷曲问题。
box1 $ ssh -v -D 12345 ubuntu@box2 -N
[...]
现在,当我尝试卷曲袜子代理时,袜子代理似乎在端口12345上正常运行:
box1 $ curl -x socks5h://localhost:12345 www.google.com
curl: (7) Failed to receive SOCKS5 connect request ack.
返回ssh -D窗口,当我运行curl命令时出现此错误:
debug1: Connection to port 12345 forwarding to socks port 0 requested.
debug1: channel 1: new [dynamic-tcpip]
channel 1: open failed: administratively prohibited: open failed
debug1: channel 1: free: direct-tcpip: listening port 12345 for www.google.com port 80,connect from 127.0.0.1 port 36240 to 127.0.0.1 port 12345,nchannels 2
任何人都可以对这里发生的事情有所了解吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。