2019-04-26 15:48:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2020-01-13 16:20:40 +00:00
|
|
|
PASS=$(grep ^p12_password: configs/10.0.8.100/.config.yml | awk '{print $2}' | cut -f2 -d\')
|
2019-04-26 15:48:28 +00:00
|
|
|
|
|
|
|
ssh-keygen -p -P ${PASS} -N '' -f configs/10.0.8.100/ssh-tunnel/desktop.pem
|
|
|
|
|
2020-01-07 13:28:19 +00:00
|
|
|
ssh -o StrictHostKeyChecking=no -D 127.0.0.1:1080 -f -q -C -N desktop@10.0.8.100 -i configs/10.0.8.100/ssh-tunnel/desktop.pem -F configs/10.0.8.100/ssh_config
|
2019-04-26 15:48:28 +00:00
|
|
|
|
|
|
|
git config --global http.proxy 'socks5://127.0.0.1:1080'
|
|
|
|
|
2020-01-13 16:20:40 +00:00
|
|
|
for i in {1..10}; do git clone -vv https://github.com/trailofbits/algo /tmp/ssh-tunnel-check && break || sleep 1; done
|
2019-04-26 15:48:28 +00:00
|
|
|
|
|
|
|
echo "SSH tunneling tests passed"
|