Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp committed Jul 5, 2024
1 parent 2f65e96 commit be8525f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 2024/07/ssh_config.md
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
```
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The best thing to do is have fun.
- [Kata](/kata.md)

- **2024-07**
- [配置多个不同的ssh key](/2024/07/ssh_config.md)
- [服务部署方案](/2024/07/server_cd.md)
- [docker sdk for python 获得容器ip地址](/2024/07/docker_container_ip.md)
- [容器调试工具](/2024/07/container_debug_tool.md)
Expand Down

0 comments on commit be8525f

Please sign in to comment.