#!/usr/bin/expect -f
set timeout 30
spawn ssh -l USERNAME IP
expect "Password:"
send "!!!!!\r"
expect "Select account:"
send "1\r"
interact
#!/usr/bin/expect -f
set timeout 30
spawn ssh -l USERNAME IP
expect "Password:"
send "!!!!!\r"
expect "Select account:"
send "1\r"
interact
转载于:https://www.cnblogs.com/next-ten-years-2023/p/4520065.html