#!/usr/bin/expect -f set user root set host xx.xx.xx.xxx set password xxxxx set timeout -1 spawn ssh $user@$host expect "password:*" send "$password " interact
#!/usr/bin/expect -f set user root set host xx.xx.xx.xxx set password xxxxx set timeout -1 spawn ssh $user@$host expect "password:*" send "$password " interact