摘要: 1. 编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式) expect #!/bin/expect set password [lindex $argv 0] spwan ssh -p22 root@192.168.254.100 expect { 'yes/no' { send 阅读全文
posted @ 2022-04-11 09:55 xiao__fei 阅读(34) 评论(0) 推荐(0)