I’m trying to execute:
platform: command_line switches: server_icecast: command_on: 'sshpass -p "xxxxxxxxxx" ssh -o StrictHostKeyChecking=no [email protected] sudo reboot 2> /config/command.log' command_off: '' .....
Time ago was working without problems. Not now. I don’t know why?
Log:
2020-01-20 15:20:10 ERROR (SyncWorker_6) [homeassistant.components.command_line.switch] Command failed: sshpass -p "xxxxxxxx" ssh -o StrictHostKeyChecking=no [email protected] sudo reboot 2> /config/command.log
Command.log:
/bin/sh: sshpass: not found
Obvously on the docker shell the command works perfectly
Any idea?