-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
当我配置ssh key时对于github可能使用某个,gitlab使用另一个,并且github需要代理访问 | ||
|
||
~/.ssh/myauth这个文件内容是代理的账号密码,没有使用可以使用注释掉那一行 | ||
|
||
``` | ||
username:password | ||
``` | ||
|
||
```sh | ||
Host github.com | ||
HostName ssh.github.com | ||
#ProxyCommand nc -X connect -x 43.x.xx.22:10080 %h %p | ||
ProxyCommand corkscrew 43.x.x.22 10080 %h %p ~/.ssh/myauth | ||
Port 443 | ||
IdentityFile ~/.ssh/y | ||
|
||
Host gitlab.co.jp gitlab.co.jp | ||
User git | ||
Port 2022 | ||
IdentityFile ~/.ssh/x | ||
``` |
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