Skip to content

Instantly share code, notes, and snippets.

@cauu
Created January 23, 2015 03:16
Show Gist options
  • Save cauu/65c2da0809a54da432f8 to your computer and use it in GitHub Desktop.
Save cauu/65c2da0809a54da432f8 to your computer and use it in GitHub Desktop.
#!/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