摘要: 1、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。#!/usr/bin/expect#expect实现登录set ip 192.168.10.101set user rootset passwd redhatspawn ssh $user@$ipexpect { "yes/ 阅读全文
posted @ 2021-12-21 13:32 k大吉大利 阅读(30) 评论(0) 推荐(0)