comparison .bash_aliases @ 200:7d3fe7399566

SSH isn't working as I expected, but this seems to still do the trick
author Steve Huston <huston@srhuston.net>
date Fri, 23 Oct 2020 09:27:10 -0400
parents 6e7913283c7a
children 16fdb3931af6
comparison
equal deleted inserted replaced
199:6bfec0d0d020 200:7d3fe7399566
82 82
83 # Proxying/tunneling - predominantly for my Mac laptop 83 # Proxying/tunneling - predominantly for my Mac laptop
84 proxy() { 84 proxy() {
85 PROXY_HOST=${PROXY_HOST:-xanadu.astro.princeton.edu} 85 PROXY_HOST=${PROXY_HOST:-xanadu.astro.princeton.edu}
86 PROXY_PORT=${PROXY_PORT:-8888} 86 PROXY_PORT=${PROXY_PORT:-8888}
87 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15' 87 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'hostname'
88 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ 88 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
89 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \ 89 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \
90 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \ 90 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
91 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" > /dev/null 2>&1 & 91 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" > /dev/null 2>&1 &
92 history -s ssh -O cancel -D $PROXY_PORT $PROXY_HOST 92 history -s ssh -O cancel -D $PROXY_PORT $PROXY_HOST