摘要: 1、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式) expect实现远程登录: [20:52:46 root@CentOS8 ~]\ [#cat expect.sh #!/usr/bin/expect spawn ssh 10.0.0.109 expect { "yes/no 阅读全文
posted @ 2021-08-15 21:34 Zhaoyaxuan 阅读(54) 评论(0) 推荐(0)