Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created December 15, 2009 14:45
Show Gist options
  • Save qingfeng/256988 to your computer and use it in GitHub Desktop.
Save qingfeng/256988 to your computer and use it in GitHub Desktop.
#!/usr/bin/expect
spawn ssh yanxu@IP
expect "*password:"
send "xxxx\n"
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment