[root@lizhipenglinux01 ~]# yum install -y expect
interact means staying on the remote machine, no need to exit
clear this file
Have successfully logged in to machine 2
[root@lizhipenglinux01 ~]# yum install -y expect
interact means staying on the remote machine, no need to exit
clear this file
Have successfully logged in to machine 2