开发者社区> 问答> 正文

ssh的端口转发报错open failed: administratively pro..怎么解决

已解决

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

展开
收起
1780169608831412 2021-10-18 20:40:31 3288 0
1 条回答
写回答
取消 提交回答
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。
    采纳回答

    您好, vim /etc/ssh/sshd_config 修改如下配置:

    PermitTunnel yes
    
    2021-10-18 20:41:06
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Usb Server 立即下载
Well-That-Escalated-Quickly-How-Abusing-The-Docker-API-Led-To-Remote-Code-Execution-Same-Origin-Bypass-And-Persistence 立即下载
低代码开发师(初级)实战教程 立即下载