Created
April 24, 2010 21:14
-
-
Save sms420/377950 to your computer and use it in GitHub Desktop.
script ssh login
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 -f | |
spawn ssh USER@DOMAIN | |
expect "*?assword:*" | |
send -- "PASSWORD\r" | |
send -- "\r" | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice