douzui6173 2019-02-22 09:02
浏览 532
已采纳

PHP ssh2_connect通过代理

Is there any solution to user ssh2_connect(host,port) via campany proxy ?

i think ssh2_connect not include connection via HTTP PROXY

thank you for help

  • 写回答

1条回答 默认 最新

  • doubo1871 2019-05-14 15:11
    关注

    So I found a tip to skip the corporate http proxy when you developpe,

    What we need : a server who has access to the source and ssh access

    open tunnel from this server like this :

    ssh -L 9999:server_probleme_access:PORT name_server_access_srouce@IP
    

    after you juste call http://127.0.0.1:9999 and you will have access

    Hope this help

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 网页游戏在本地页面修改游戏结果
  • ¥30 comfyui openpose报错
  • ¥20 Wpf Datarid单元格闪烁效果的实现
  • ¥15 图像分割、图像边缘提取
  • ¥15 sqlserver执行存储过程报错
  • ¥100 nuxt、uniapp、ruoyi-vue 相关发布问题
  • ¥15 浮窗和全屏应用同时存在,全屏应用输入法无法弹出
  • ¥100 matlab2009 32位一直初始化
  • ¥15 Expected type 'str | PathLike[str]…… bytes' instead
  • ¥15 三极管电路求解,已知电阻电压和三级关放大倍数