2024年5月19日

摘要: vim ip_pass.txt 192.168.40.131 1234 192.168.40.132 1234 192.168.40.133 1234 cat ssh5.exp #!/usr/bin/expect set ipaddr [lindex $argv 0] set name "root" 阅读全文
posted @ 2024-05-19 09:49 lzjasd 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: cat ssh4.exp #!/usr/bin/expect #set timeout 40 set a1 [lindex $argv 1] set a2 [lindex $argv 2] set a0 [lindex $argv 0] spawn echo $a1 $a2 # expect eof 阅读全文
posted @ 2024-05-19 09:42 lzjasd 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: #!/usr/bin/expect set ipaddr "192.168.40.132" set name "root" set passwd "1234" set timeout 30 spawn ssh-keygen expect { "continue connecting (yes/no) 阅读全文
posted @ 2024-05-19 08:41 lzjasd 阅读(2) 评论(0) 推荐(0) 编辑