0

im trying to use a ssh plugin for the homebridge to turn off my truenas. if havve the following config

{
    "accessory": "SSH",
    "name": "Remote Command",
    "command": "sudo shutdown -h now",
    "sshConfig": {
        "host": "truenas",
        "username": "root",
        "privateKey": "/home/pi/dev/SSH Shutdown/privatekey.ssh"
    }
}

im getting the error

Error: Invalid username at Client.connect (/usr/lib/node_modules/homebridge-ssh/node_modules/ssh2/lib/client.js:130:11) at connect (/usr/lib/node_modules/homebridge-ssh/node_modules/ssh-exec/index.js:53:12) at ReadFileContext.callback (/usr/lib/node_modules/homebridge-ssh/node_modules/ssh-exec/index.js:109:7) at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:314:13)

The SSH connection with that username and private key is working from the same pi. I tested that. I tried the same with another user and got the same error. can someone help? Am I missing someothing obvisous?

fckilagged
  • 15
  • 3

0 Answers0