摘要: #!/usr/bin/expect set timeout 10 set username [lindex $argv 0] set password [lindex $argv 1] set hostname [lindex $argv 2] spawn ssh-copy-id -i /root/.ssh/id_rsa.pub $username@$hostname expect { ... 阅读全文
posted @ 2018-04-19 15:41 一米八大高个儿 阅读(233) 评论(0) 推荐(0) 编辑