I haven't used the SSH node, when I want to execute a remote command via ssh I use a normal Exec node with a command something like ssh user@ip_address 'reboot'
. If the reboot command needs to be sudo reboot
then the device being rebooted needs to be configured to not need a password for that command.