首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >SSH socks代理反向连接被拒绝

SSH socks代理反向连接被拒绝
EN

Server Fault用户
提问于 2015-01-14 22:39:14
回答 1查看 808关注 0票数 2

因此,我编写了一个java应用程序,它以反向方式连接到服务器(-R),并在其中创建一个ssh服务器,以便服务器能够在执行我的应用程序的客户机中执行命令。那部分运作得很完美。问题是,我想在服务器中创建一个SOCKS代理,并通过客户机隧道化流量。我使用的命令是:

ssh -vvv -f -D 0.0.0.0:8080 localhost -p 11707 -N

我收到这个错误:

代码语言:javascript
运行
复制
debug1: Connection to port 8080 forwarding to socks port 0 requested.
debug2: fd 5 setting TCP_NODELAY
debug2: fd 5 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 1: new [dynamic-tcpip]
debug2: channel 1: pre_dynamic: have 0
debug2: channel 1: pre_dynamic: have 4
debug2: channel 1: decode socks5
debug2: channel 1: socks5 auth done
debug2: channel 1: pre_dynamic: need more
debug2: channel 1: pre_dynamic: have 0
debug2: channel 1: pre_dynamic: have 25
debug2: channel 1: decode socks5
debug2: channel 1: socks5 post auth
debug2: channel 1: dynamic request: socks5 host www.cualesmiip.com port 80 command 1
channel 1: open failed: administratively prohibited: Connection denied
debug2: channel 1: zombie
debug2: channel 1: garbage collecting
debug1: channel 1: free: direct-tcpip: listening port 8080 for www.cualesmiip.com port 80, connect from 4.174.29.15 port 50879, nchannels 2
debug3: channel 1: status: The following connections are open:

在接收连接的ssh服务器中,我将AllowTcpForwarding设置为yes

错误在哪里??谢谢

EN

回答 1

Server Fault用户

发布于 2015-02-04 22:23:31

将GatewayPorts选项设置为sshd_config中的yes。

GatewayPorts是

票数 -2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/659594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档