通过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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...