[GH-ISSUE #474] 如何设置 ssh 转 https 代理 #376

Open
opened 2026-02-27 23:16:41 +03:00 by kerem · 2 comments
Owner

Originally created by @tueac on GitHub (Mar 22, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/474

你好,我在 ”1.7.HTTP(S) via SSH relay“ 这一节只看到关于 ssh 转 http 代理的示例,但是没有 ssh 转 https 代理的示例;

我尝试使用 ssh 转 http 命令上,将 http 修改为 https ,在尝试以下两个方法都不行,报错 ERROR err : expected command but got "https"
./proxy https -T ssh -P "1.1.1.1:21021" -u root -S /root/.ssh/id_rsa -t tcp -p "0.0.0.0:28080"
./proxy https -T ssh -P "1.1.1.1:21021" -u root -S /root/.ssh/id_rsa -t tcp -p "0.0.0.0:28080" -C /root/fullchain.crt -P /root/private.pem

请告诉我如何使用 ssh 转 https 代理

Originally created by @tueac on GitHub (Mar 22, 2022). Original GitHub issue: https://github.com/snail007/goproxy/issues/474 你好,我在 ”1.7.HTTP(S) via SSH relay“ 这一节只看到关于 ssh 转 http 代理的示例,但是没有 ssh 转 https 代理的示例; 我尝试使用 ssh 转 http 命令上,将 http 修改为 https ,在尝试以下两个方法都不行,报错 ERROR err : expected command but got "https" `./proxy https -T ssh -P "1.1.1.1:21021" -u root -S /root/.ssh/id_rsa -t tcp -p "0.0.0.0:28080"` `./proxy https -T ssh -P "1.1.1.1:21021" -u root -S /root/.ssh/id_rsa -t tcp -p "0.0.0.0:28080" -C /root/fullchain.crt -P /root/private.pem` 请告诉我如何使用 ssh 转 https 代理
Author
Owner
<!-- gh-comment-id:1074725124 --> @snail007 commented on GitHub (Mar 22, 2022): https://snail007.host900.com/goproxy/page/faq/goproxy%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/
Author
Owner

@snail007 commented on GitHub (Mar 22, 2022):

image
<!-- gh-comment-id:1074725391 --> @snail007 commented on GitHub (Mar 22, 2022): <img width="616" alt="image" src="https://user-images.githubusercontent.com/4533203/159410672-9669dc8e-1e41-4bfb-bc58-99659d4675a0.png">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#376
No description provided.