ssh keeps asking for passphrase which gives HWOL-4001 when switch is used via homekit #237
Unanswered
abhiiously
asked this question in
Questions
Replies: 1 comment
-
When you generated the key, you likely entered a non-empty passphrase. This passphrase encrypts the key and will require it to be entered every time the key is used. You'll have to generate a new key-pair, this time without entering a password. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Backstory
I followed this tutorial to get ssh working on homebridge-wol on Unraid, albeit the only way I can get it to put my computer to sleep is to have ssh-keygen create a key without a passphrase which I know is unsafe.
Issue
I keep getting "Enter passphrase for key '/homebridge/id_rsa': " when I manually run the ssh command via homebridge terminal but when I run the ssh command via homekit on my phone I get this error in the logs
Environment
Configuration
{
"bridge": {
"name": "Homebridge B89B",
"username": "-snip-",
"port": 51796,
"pin": "302-91-740",
"advertiser": "bonjour-hap"
},
"accessories": [
{
"name": "Garage Switch",
"stateful": false,
"dimmer": false,
"reverse": false,
"time": 1000,
"random": false,
"resettable": false,
"brightness": 0,
"disableLogging": false,
"accessory": "DummySwitch",
"_bridge": {
"username": "-snip-",
"port": 34710
}
},
{
"name": "Abhi-PC",
"manufacturer": "Abhiiously",
"model": "Abhi-PC",
"host": "192.168.50.90",
"pingInterval": 2,
"pingsToChange": 5,
"pingTimeout": 1,
"pingCommandTimeout": 0,
"mac": "-snip-",
"startCommandTimeout": 0,
"wakeGraceTime": 45,
"wakeCommandTimeout": 0,
"shutdownCommand": "ssh -o StrictHostKeyChecking=no -i /homebridge/id_rsa [email protected] "C:\Data\PSTools\psshutdown -d -t 2"",
"shutdownGraceTime": 5,
"shutdownCommandTimeout": 0,
"logLevel": "Info",
"returnEarly": true,
"_bridge": {
"username": "-snip-",
"port": 55532
},
"accessory": "NetworkDevice"
}
],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "Plex Webhooks Platform",
"sensors": [
{
"name": "abhikbhatia",
"filters": [
[
{
"path": "Account.title",
"operator": "===",
"value": "abhikbhatia"
}
]
]
},
{
"name": "Abhiiously",
"filters": [
[
{
"path": "Account.title",
"operator": "===",
"value": "Abhiiously"
}
]
]
}
],
"_bridge": {
"username": "-snip-",
"port": 50255
},
"platform": "PlexWebhooks"
},
{
"name": "TplinkSmarthome",
"addCustomCharacteristics": true,
"switchModels": [
"HS200"
],
"deviceTypes": [
"plug"
],
"platform": "TplinkSmarthome",
"_bridge": {
"username": "-snip-",
"port": 52153
}
}
]
}
Logs
Beta Was this translation helpful? Give feedback.
All reactions