ssh的端口转发报错open failed: administratively prohibited: open failed

问题描述

配置ssh端口转发.
客户端连接:

ssh root@49.234.100.17 -v -C -L 127.0.0.1:8891:10.0.1.3:8080

客户端连接端口:

curl  http://127.0.0.1:8891/

报错如下:

curl: (56) Recv failure: Connection reset by peer

服务端返回报错如下:

channel 2: open failed: administratively prohibited: open failed
debug1: channel 2: free: direct-tcpip: listening port 8891 for 10.0.1.3 port 8080, connect from 127.0.0.1 port 37200 to 127.0.0.1 port 8891, nchannels 3
阅读 15.2k
2 个回答
✓ 已被采纳新手上路,请多包涵

vim /etc/ssh/sshd_config
修改如下配置:
PermitTunnel yes

你这个10.0.1.3地址的端口在服务端能正常访问吗

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题