linux expect用法之ssh远程自动登陆

shell脚本实现ssh自动登陆远程服务器示例:web #!/usr/bin/expect set timeout 30 spawn ssh root@192.168.12.1 expect "root@192.168.12.1's password:" send "10141018\r" interact expect是一个用来处理交互的命令。借助Expect,咱们能够将交互过程写在一个脚本上,
相关文章
相关标签/搜索