homebridge-ssh icon indicating copy to clipboard operation
homebridge-ssh copied to clipboard

[Question] How to pass ssh key to this plugin?

Open casper-gh opened this issue 9 years ago • 6 comments

Can someone help me with instruction how to use this plugin?

casper-gh avatar Dec 24 '15 02:12 casper-gh

Did the instructions work? Show your work.

jnovack avatar Dec 28 '15 18:12 jnovack

@jnovack No I didn't find any instruction, but I don't think this plugin supports ppk/pem keys

casper-gh avatar Dec 28 '15 21:12 casper-gh

there is an example configuration in the npm project page (https://www.npmjs.com/package/homebridge-ssh). It supports public key authentication (https://github.com/zb0th/homebridge-ssh/issues/2)

alguevara7 avatar Dec 28 '15 21:12 alguevara7

More specifically, this plugin depends on https://www.npmjs.com/package/ssh-exec ...so you can pass in the ssh section whatever params ssh-exec supports.

alguevara7 avatar Dec 28 '15 21:12 alguevara7

Tested with key and working. #close

jnovack avatar Dec 29 '15 02:12 jnovack

Can you give me some heads-up if I want to set up something like this:

  1. I say: "Siri, turn off motion detection"

  2. Homebridge will ssh into another linux machine and execute this script

    echo -n 'md 0' > /var/www/html/cam-01/FIFO

  3. Siri response with some customized strings

I'm not sure how the config file works, does it only allow "on" or "off" states?

casper-gh avatar Dec 29 '15 22:12 casper-gh