摘要:
Q1:编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。 A1:Expect脚本: #!/usr/bin/expect spawn ssh root@192.168.31.122 expect { "*(yes/no*" { send "yes\r";exp_continue 阅读全文
posted @ 2022-01-10 22:12
Leveling
阅读(74)
评论(0)
推荐(0)
浙公网安备 33010602011771号