How to automate password entry?

后端 未结 5 2265
攒了一身酷
攒了一身酷 2020-12-16 06:46

I want to install a software library (SWIG) on a list of computers (Jenkins nodes). I\'m using the following script to automate this somewhat:

NODES=\"10.8.2         


        
5条回答
  •  渐次进展
    2020-12-16 07:23

    Here’s an expect example that sshs in to Stripe’s Capture The Flag server and enters the password automatically.

    expect <<< 'spawn ssh level01@ctf.stri.pe; expect "password:"; send "e9gx26YEb2\r";'
    

提交回复
热议问题