shell
#!/usr/bin/expect spawn ssh [email protected] expect "*password:" send "lizhenghua/r" expect "*#" interact
需要安装expect, 如果执行失败
yum install expect -y
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2930.html
-->
shell
#!/usr/bin/expect spawn ssh [email protected] expect "*password:" send "lizhenghua/r" expect "*#" interact
需要安装expect, 如果执行失败
yum install expect -y
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2930.html