#!/usr/bin/expect -f
set timeout 30

spawn ssh -l USERNAME IP
expect "Password:"
send "!!!!!\r"
expect "Select account:"
send "1\r"
interact

posted on 2015-05-21 16:22  onesteng  阅读(323)  评论(0编辑  收藏  举报