linux expect ssh自动登录

1 检查而且安装expect sudo apt-get install tcl tk expect 2 写脚本test.sh web #!/usr/bin/expect #注意这里是 你的expect路径(通常就是这个默认路径) set timeout 100 set userName "xxxx" set password "xxxx" spawn bash xxxx.sh #运行你的ssh
相关文章
相关标签/搜索