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


  - platform: command_line
        command_on: ssh [email protected] 'sh'

Command failed: ssh [email protected] ‘sh’

You need to run the command in the homeassistant container.

Details in the first post of the topic.