Skip to content

Instantly share code, notes, and snippets.

@hbprotoss
Created November 20, 2013 13:26
Show Gist options
  • Save hbprotoss/7563140 to your computer and use it in GitHub Desktop.
Save hbprotoss/7563140 to your computer and use it in GitHub Desktop.
ssh
#!/bin/bash
eval `ssh-agent`
ssh-add
#!/bin/bash
. ./agent.sh
No=1
while [ 0 ]
do
echo "Trying for the $No-th time..."
ssh -NfR 10000:localhost:22 [email protected] -p22
ssh -NfR 11000:localhost:3128 [email protected] -p22
sleep 5m
let No++
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment