2021年11月29日
摘要: 一、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。 1.expect脚本 [root@centos7 ~]# cat ./expects/expect.sh #!/usr/bin/expect spawn ssh 192.168.181.137 expect { "yes/ 阅读全文
posted @ 2021-11-29 00:05 天宇hc 阅读(86) 评论(0) 推荐(0)