Hey guys,
im trying to use the plugin to turn off my truenas. if havbe 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.
can someone help?
Hey guys,
im trying to use the plugin to turn off my truenas. if havbe 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
The SSH connection with that username and private key is working from the same pi. I tested that.
can someone help?