SSHCommand
SSHCommand copied to clipboard
Login as other user and then elevate as root
I am trying to login to my synology using my user and then elevate to root and then run a command using a home assistant script.
This is what i have so far:
service: ssh_command.exec_command
data:
host: 10.10.10.245
port: 22
user: andremain
pass: password
command: ssh -p password [email protected] -i sudo synonet --wake "54:04:a6:28:d4:fa" eth0
Please help!
I don't know how to help
I am trying to login to my synology using my user and then elevate to root and then run a command using a home assistant script.
This is what i have so far:
service: ssh_command.exec_command data: host: 10.10.10.245 port: 22 user: andremain pass: password command: ssh -p password [email protected] -i sudo synonet --wake "54:04:a6:28:d4:fa" eth0Please help!
Do you have SSH enabled on the Synology server? You might also try the Synology integration in HomeAssistant but I think you're trying to do a "Wake on Lan" argument.