Skip to content

Instantly share code, notes, and snippets.

@sms420
Created April 24, 2010 21:14
Show Gist options
  • Save sms420/377950 to your computer and use it in GitHub Desktop.
Save sms420/377950 to your computer and use it in GitHub Desktop.
script ssh login
#!/usr/bin/expect -f
spawn ssh USER@DOMAIN
expect "*?assword:*"
send -- "PASSWORD\r"
send -- "\r"
expect eof
@sati2013
Copy link

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment