Skip to content

Instantly share code, notes, and snippets.

@EdwardsBean
Created February 11, 2015 05:45
Show Gist options
  • Save EdwardsBean/8f199e56f8a27561c893 to your computer and use it in GitHub Desktop.
Save EdwardsBean/8f199e56f8a27561c893 to your computer and use it in GitHub Desktop.
#!/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
}
}
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