alguevara7 / homebridge-ssh

SSH plugin for homebridge: https://github.com/nfarina/homebridge
50 stars 14 forks source link

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

Open casper-gh opened 8 years ago

casper-gh commented 8 years ago

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

jnovack commented 8 years ago

Did the instructions work? Show your work.

casper-gh commented 8 years ago

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

alguevara7 commented 8 years ago

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 commented 8 years ago

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.

jnovack commented 8 years ago

Tested with key and working. #close

casper-gh commented 8 years ago

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?