Skip to content

"invalid username" #30

Description

@fckilagged

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions