February 1st, 2023 01:00

"expect" is your friend. Many examples to be found like: https://www.digitalocean.com/community/tutorials/expect-script-ssh-example-tutorial

Autoexpect might further help you to create the expect script:
https://hostadvice.com/how-to/how-to-automate-tasks-in-ssh/

 

9 Legend

 • 

20.4K Posts

February 1st, 2023 19:00

If you are scripting this process in Python, for example, you could use this command to send a "yes"

stdin.write('yes\n')
stdin.flush()

No Events found!

Top