From bd5b1623eaa4b7e7f3d8ad03526d1ba6b824bc1e Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Sun, 1 Mar 2020 19:15:19 +0000 Subject: [PATCH 1/2] 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 + From 39c3b43ab7b57167fcc44d6c80285399e068db13 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Mon, 9 Mar 2020 02:33:26 +0400 Subject: [PATCH 2/2] Yerevak .ssh config. --- bin/upload.ready.deluge.sh | 11 ++++++++++- local/yerevak/.ssh/config | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 local/yerevak/.ssh/config diff --git a/bin/upload.ready.deluge.sh b/bin/upload.ready.deluge.sh index c2d8607..ccfdbe9 100755 --- a/bin/upload.ready.deluge.sh +++ b/bin/upload.ready.deluge.sh @@ -1 +1,10 @@ -/usr/bin/rsync -av --inplace --append-verify -e "ssh -p 8080" /mnt/ssd/deluge/done lusntag.vostan.org:/mnt/home/vahagn/tmp/tmp +set -x +if [ ! -z "$*" ]; then + for i in "$@"; do + /usr/bin/rsync -av --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/" + done +else + echo "/usr/bin/rsync -av --inplace --append-verify /mnt/ssd/deluge/done hrat:tmp/tmp" +fi + + diff --git a/local/yerevak/.ssh/config b/local/yerevak/.ssh/config new file mode 100644 index 0000000..61b40ed --- /dev/null +++ b/local/yerevak/.ssh/config @@ -0,0 +1,24 @@ +# Note that value for 'User' must be 'git'. + +Host lusntag + HostName lusntag.vostan.org + Port 8080 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa + User vahagn + +Host yerevak + HostName yerevak.vostan.org + Port 24 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa + User vahagn + + +Host hrat + HostName 192.168.0.4 + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa + User vahagn + ProxyCommand=ssh -W %h:%p lusntag +