Command line ssh switch help

So im tryin to make a switch the lets me turn on and off a mining progrom on another pc.

heres my config.yaml

  • platform: command_line
    host: 192.168.1.x
    name: ‘miner’
    username: user
    password: password
    switches:
    miner:
    command_on: sudo /home/user/RainbowMiner/ ./start-nohup.sh
    command_off: sudo /home/user/RainbowMiner/ ./stop.sh

no to sure what i am doing wrong

If you paste in code or configuration please use ``` on the line before adding the code and again after the code. This way the forum does nothing to the indentation,etc. That’s the only way we can help.

Example:

```
Code
  With
    Indentation
```

Will result in:

Code
  With
    Indentation

Are these script already works?