Created
November 20, 2013 13:26
-
-
Save hbprotoss/7563140 to your computer and use it in GitHub Desktop.
ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
eval `ssh-agent` | |
ssh-add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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