expect/spawn小记

版权声明: https://blog.csdn.net/frank_ldw/article/details/81388472

#!/usr/bin/expect
set timeout 3
spawn ssh -l root 10.239.81.207
expect "passwd"
send "123456\r"
interact
 

猜你喜欢

转载自blog.csdn.net/frank_ldw/article/details/81388472