魏蓝

以梦为马

导航

第六周作业

1、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。 expect [root@centos7 ~]# vim exssh.sh #!/usr/bin/expect set IP 10.0.0.13 set PD 123456 set USER root spawn ssh

posted on 2022-04-17 12:26  魏蓝  阅读(25)  评论(0编辑  收藏  举报