#!/usr/bin/expect
set timeout -1
spawn ssh my-host-name
expect "yes/no" { send "yes\r" }
Advertisements