Created
January 23, 2015 03:16
-
-
Save cauu/65c2da0809a54da432f8 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 | |
#Program: | |
# This program will connect your centos cloud server | |
#History: | |
#2014/11/25 Cauu Martin First release | |
set timeout 30 | |
spawn ssh usrname@your server address | |
expect "usrname@your server address's password:" | |
send "your password\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment