标签:time 密码 bsp end code class key pre 脚本
1 #!/usr/bin/expect 2 set timeout 10 3 spawn ssh root@20.0.102.19 4 expect "password:" 5 send "123456\n" 6 interact
1 #!/usr/bin/expect 2 set timeout 10 3 spawn scp -r root@20.0.102.19:/root/.ssh/authorized_keys /root/authorized_keys 4 expect "password:" 5 send "123456\n" 6 interact
标签:time 密码 bsp end code class key pre 脚本
原文地址:http://www.cnblogs.com/wangtao1993/p/6290929.html