Created
November 2, 2011 09:32
-
-
Save ninehills/1333256 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/expect | |
# require expect openssh | |
# modify PORT USER HOST PASS | |
set timeout 60 | |
spawn /usr/bin/ssh -D PORT -g USER@HOST | |
expect { | |
"password:" { | |
send "PASS\r" | |
} | |
} | |
interact { | |
timeout 60 { send " "} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment