SSH Command Switch

Hello, i have a Problem with a ssh command.

if i start the command in the hassio terminal it works, but if i start it from the Lovelacecard it will not work.

Passwordless ssh is working.
On the remote System there is a script that i want call.
I also tried to start a command without an skript but that works neither.

Would be nice if somebody can help me

configuration.yaml

switch:
  - platform: command_line
    switches:
      nuc:
        command_on: ssh [email protected] 'sh mfi_nuc_on.sh'

Error-Log
Command failed: ssh [email protected] ‘sh mfi_nuc_on.sh’

You need to run the command in the homeassistant container.

Details in the first post of the topic.