#!/usr/bin/expect
set timeout 3
spawn ssh -l root 10.239.81.207
expect "passwd"
send "123456\r"
interact
expect/spawn小记
最新推荐文章于 2023-01-03 19:41:49 发布
#!/usr/bin/expect
set timeout 3
spawn ssh -l root 10.239.81.207
expect "passwd"
send "123456\r"
interact