写.sh文件登录
#!/usr/bin/expect
set timeout 10
spawn ssh username@ip
expect {
"*password:" {send "password\r"}
}
interact