Last active
February 11, 2017 13:37
-
-
Save paresharma/79a1dd99bf5589570004ea951863d20d to your computer and use it in GitHub Desktop.
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 | |
set SERVER [lindex $argv 0]; | |
set PASSWORD [lindex $argv 1]; | |
spawn ssh $SERVER | |
expect "assword:" | |
send "$PASSWORD\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment