Created
February 11, 2015 05:45
-
-
Save EdwardsBean/8f199e56f8a27561c893 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/expect | |
set timeout 30 | |
spawn ssh -qTfnN -D 7070 [email protected] | |
expect { | |
"yes/no" | |
{ | |
send "yes\r";exp_continue | |
} | |
"password:" | |
{ | |
send "mouboshi\r";exp_continue | |
} | |
} |
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
ssh-keygen -f "/home/edwardsbean/.ssh/known_hosts" -R std.pennyjob.net | |
./hello-world.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment