摘要: 一、编写脚本实现登陆远程主机(使用expect和shell脚本两种形式)。 expect: #!/usr/bin/expect spawn ssh 192.168.163.143 expect { "yes/no" {send "yes\n";exp_continue} "password" {se 阅读全文
posted @ 2022-04-18 18:51 areke 阅读(217) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2621461/202204/2621461-20220418174234452-1670106400.png) 阅读全文
posted @ 2022-04-18 17:43 areke 阅读(36) 评论(0) 推荐(0)