1.编写脚本实现登陆远程主机.(使用expect和shell脚本两种形式). #使用expect远程登录 [root@centos8 ~]#dnf -y install expect [root@centos8 ~]#yum info expect Last metadata expiration check: 0:01:31 ago on Fri 01 Oct 2021 01:14:22 AM CST. Installed Packages Name : expect Version : 5.…