SSHCommand icon indicating copy to clipboard operation
SSHCommand copied to clipboard

Login as other user and then elevate as root

Open andremain opened this issue 1 year ago • 2 comments

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!

andremain avatar Jul 08 '24 14:07 andremain

I don't know how to help

AlexxIT avatar Jul 09 '24 12:07 AlexxIT

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!

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.

sigmaenigma avatar Aug 27 '24 21:08 sigmaenigma