Category "expect"

How to execute a shell script and continue typing?

I'm trying to execute a shell script that ssh's into a jump server, enter a password and then be able to enter commands or ssh into another server. The issue is

Automatic restart of ip-phones via ssh and cron (sshpass, expect or other solutions)

The task is to remotely reboot ip-phones every night.sshpass:sshpass -p 12345678 ssh -o StrictHostKeyChecking=no [email protected] reboot In response: Connectio