脚本
#!/bin/bash /usr/bin/expect <<EOF #使用root权限来执行命令 spawn ssh ljj@localhost expect "password" send "qqq123...A\r" expect eof EOF
前提下载
yum install expect
2023-12-16 13:23:46
脚本
#!/bin/bash /usr/bin/expect <<EOF #使用root权限来执行命令 spawn ssh ljj@localhost expect "password" send "qqq123...A\r" expect eof EOF
前提下载
yum install expect