Push SSH keys
#! /usr/bin/expect -f
#debug 1
spawn scp -r -o StrictHostKeyChecking=no /root/.ssh root@[lindex $argv 0]:/root/
expect ".*?assword:*"
send "somepassword\r"
interact
#! /usr/bin/expect -f
#debug 1
spawn scp -r -o StrictHostKeyChecking=no /root/.ssh root@[lindex $argv 0]:/root/
expect ".*?assword:*"
send "somepassword\r"
interact