Wlxyzxyz's Blog

expect

使用expect和ssh登录服务器

2020/6/4

expect可以帮助我们 自动化完成一些交互操作。 使用expect来执行ssh命令 1. 编写脚本 ```bash #!/usr/bin/expect #sshlogi