-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: Merge pull request #19 from genshen/docs-update
Update documents, update theme of the document website
- Loading branch information
Showing
7 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,27 @@ GIT_SSH_COMMAND="ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p' " git clone ss | |
GIT_SSH_COMMAND="ssh -o ProxyCommand='connect -S 127.0.0.1:1080 %h %p' " git clone ssh://[email protected]:2222/cli/cli.git | ||
``` | ||
|
||
## git-lfs (macos) | ||
wssocks-ustb 客户端需要开启 http/https 代理。 | ||
适用于 lfs 数据通过 https/http 协议传输的情况。 | ||
|
||
```bash | ||
# macos | ||
export https_proxy=http://127.0.0.1:1080 http_proxy=http://127.0.0.1:1086 | ||
git push | ||
``` | ||
|
||
## HTTP/HTTPS 协议访问 | ||
wssocks-ustb 客户端需要开启 http/https 代理。 | ||
这里全局配置 https://git.hpcer.dev 域名下的所有仓库都通过代理访问,https 代理服务器的地址为 http://127.0.0.1:1080 (与 wssocks-ustb的 socsk5 address 一致)。 | ||
``` | ||
|
||
```bash | ||
git config --global http.https://git.hpcer.dev.proxy http://127.0.0.1:1080 | ||
git clone https://git.hpcer.dev/genshen/my-project.git | ||
``` | ||
注意,如果你的服务器只支持 http 协议,git 的配置的 http 代理服务器地址改为 http://127.0.0.1:1086 (与wssocks-ustb的 htt(s) address 一致): | ||
``` | ||
|
||
```bash | ||
git config --global http.http://git.hpcer.dev.proxy http://127.0.0.1:1086 | ||
``` | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ ssh -o ProxyCommand='connect -S 127.0.0.1:1080 %h %p' [email protected] | |
``` | ||
`[email protected]` 替换为你需要连接的目标服务器用户和地址,`127.0.0.1:1080` 为前面 wssocks-ustb 客户端配置的 SOCKS5 监听地址和端口。 | ||
|
||
!> 建议 windows 用户 connect.exe 的路径用完整的绝对路径,因为直接用 `connect -S 127.0.0.1:1080 %h %p` 在部分 windows 上可能会出现连接失败的问题。 | ||
|
||
### 其他 shell 客户端 | ||
其他平台上的一些 shell 客户端(如xshell),也可对ssh连接进行 socks5 代理配置。 | ||
具体参见相关配置文档,主要配置内容是设置连接的代理类型为 SOSCK5,且设置 socks5 服务器地址为 wssocks-ustb 客户端对应的 "socks5 address"(如 `127.0.0.1:1080`)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters