摘要: 1、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。 yum -y install expect #方法1 vim expect_ssh.sh #!/usr/bin/expect set ip 10.0.0.8 set user root set password 12345 阅读全文
posted @ 2021-12-21 15:07 ray0712 阅读(100) 评论(0) 推荐(0)