AlexGustafsson / homebridge-wol

A Wake on Lan plugin for Homebridge
MIT License
301 stars 30 forks source link

Problems ssh to windows only from homebridge terminal #254

Closed reckedpr closed 10 months ago

reckedpr commented 11 months ago

Backstory

I have followed steps from the wiki for the shutdown command and everything works apart from when I try run the command from the homebridge terminal it doesnt work but when I run it from normal terminal then it works fine

Issue

My homebridge folder thing is in the home folder not sure why, I cant create folders in the root drive so yeah. When I run it in homebridge terminal this shows up, I went and check the permissions tho and it says that everyone can read and write. why is it not working? Obviously if I type the password it works but it should be keyless ssh so I can just flip the switch on my iphone.

Load key "/home/homebridge/id_rsa": Permission denied

Environment

- os and os version: Linux mint xfce , LinuxMint Victoria (21.2) 
- node version: v18.18.2 not the latest but not sure if its relevent to this issue
- homebridge version:v1.7.0 latest
- homebridge-wol version: v4.54.1 latest

Configuration

No response

Logs

When I follow these steps:
1. Make sure `logLevel` is set to `Debug` on all `NetworkDevice` accessories
2. Run `homebridge`
3. Let it run for a couple of minutes
4. Try to turn a device on or off using the plugin
5. Wait one minute
6. Repeat step 4

I get the following log:

Please paste your log here

homebridge@dexter-9500-0446A:/var/lib/homebridge $ ssh -i /home/homebridge/id_rsa dexter@192.168.1.139 shutdown /s

Load key "/home/homebridge/id_rsa": Permission denied

dexter@192.168.1.139's password:



### Notes

_No response_