SSHCommand
SSHCommand copied to clipboard
Unable to SSH hate to Pi
trafficstars
Hi,
I am unsure why I can't get this to work:
sequence:
- action: ssh_command.exec_command
metadata: {}
data:
command: sudo reboot
host: 192.168.1.189
port: 8090
user: xxx
pass: xxx
alias: HyperHDR - Shutdown
I've also tried: command: reboot with no success.
It works when I do it through terminal(mac):
What am I doing wrong?
Also, I've added this into config.yaml:
# SSH - HyperHDR
ssh_command:
host: 192.168.1.189
port: 8090
user: !secret hyperhdr_username
pass: !secret hyperhdr_password
How do I use this in the script?
Thanks in advance!
sudo requires a password. You can't enter it through this component.
sudorequires a password. You can't enter it through this component.
Thanks for the reply 😁 is there another way to turn off a Pi without sudo?
I think you can allow your user to run shutdown without sudo. Check docs in the Google.