From bd5b1623eaa4b7e7f3d8ad03526d1ba6b824bc1e Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Sun, 1 Mar 2020 19:15:19 +0000 Subject: [PATCH] bb vpn laptop wsl ssh config. --- config/.gitconfig | 11 ------ local/bb_local_dev/.gitconfig.local | 16 -------- local/bb_local_dev/.ssh/config | 59 +++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 27 deletions(-) create mode 100644 local/bb_local_dev/.ssh/config diff --git a/config/.gitconfig b/config/.gitconfig index 7798dad..219816c 100644 --- a/config/.gitconfig +++ b/config/.gitconfig @@ -30,14 +30,3 @@ [pager] branch = false -[url "https://vishap@github.com/"] - insteadOf = github: - -[url "https://gitlab.com/"] - insteadOf = gitlab: - -[url "http://192.168.0.4:8080/"] - insteadOf = mylab: - -[pager] - branch = false diff --git a/local/bb_local_dev/.gitconfig.local b/local/bb_local_dev/.gitconfig.local index 14f8a28..c636431 100644 --- a/local/bb_local_dev/.gitconfig.local +++ b/local/bb_local_dev/.gitconfig.local @@ -9,26 +9,10 @@ proxy = http://proxy.bloomberg.com:81 sslCAinfo = /usr/local/share/ca-certificates/bloomberg-root-ca.crt -[url "https://github.com/"] - insteadOf = github.com: -[url "https://github.com/"] - insteadOf = git@github.com: -[url "https://github.com/"] - insteadOf = ssh://git@github.com/ - [http "https://gitlab.com"] proxy = http://proxy.bloomberg.com:81 sslCAinfo = /usr/local/share/ca-certificates/bloomberg-root-ca.crt -[url "https://gitlab.com/"] - insteadOf = gitlab.com: -[url "https://gitlab.com/"] - insteadOf = git@gitlab.com: -[url "https://gitlab.com/"] - insteadOf = ssh://git@gitlab.com/ - [http "http://192.168.0.4:8080"] proxy = socks5://127.0.0.1:1080 -[url "http://git.kernel.org"] - insteadOf = git://git.kernel.org diff --git a/local/bb_local_dev/.ssh/config b/local/bb_local_dev/.ssh/config new file mode 100644 index 0000000..7b31dc6 --- /dev/null +++ b/local/bb_local_dev/.ssh/config @@ -0,0 +1,59 @@ +# Note that value for 'User' must be 'git'. +Host bbgithub bbgithub.dev.bloomberg.com + HostName bbgithub.dev.bloomberg.com + IdentityFile ~/.ssh/bbgithub + User git + UserKnownHostsFile /dev/null + StrictHostKeyChecking no + +Host github.com + User vishap + Hostname github.com + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa_home + ProxyCommand=nc -X 5 -x localhost:1080 %h %p + + +Host lusntag + HostName lusntag.vostan.org + Port 8080 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa_home + User vahagn + ProxyCommand=nc -X 5 -x localhost:1080 %h %p + +Host yerevak + HostName yerevak.vostan.org + Port 24 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa_home + User vahagn + ProxyCommand=nc -X 5 -x localhost:1080 %h %p + + +Host hrat + HostName 192.168.0.4 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa_home + User vahagn + ProxyCommand=nc -X 5 -x localhost:1080 %h %p + + +Host * + AddKeysToAgent yes + IdentitiesOnly yes + StrictHostKeyChecking no + UserKnownHostsFile /dev/null + +Host v5dev v5devgateway.bdns.bloomberg.com + ControlMaster auto + ControlPersist 8h + IdentityFile ~/.ssh/id_rsa.openssh + ControlPath /tmp/%r@%h-%p + Port 22 + +Host *.bloomberg.com !bbgithub.dev.bloomberg.com !v5prqsgateway.bdns.bloomberg.com + ControlPath /tmp/%r@%h-%p + ControlMaster auto + ControlPersist 24h +