-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup SSH key authentication on Windows 10 #82
Comments
I'm sorry, but you'll have to revisit SSH keys - it is the way to go. I'm pretty sure it's not available on Windows, but there's an application (CLI utility) called Here are some pointers that may be helpful: This link explains how to configure your SSH keys: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement. The keys will be used instead of the password to authenticate yourself. The last, but important step is to execute the following command in CMD in order to copy your keys to the Mac:
The above command may fail depending on differences between implementations, but the command will very likely still be called Also, |
Ok, so I've figured it out. I re-created my server on Ubuntu for ease of commands etc, but I'm still stuck. Now when I toggle my Mac off, I get this:
What I don't understand is that "Host key verification" works when I use SSH to login to my Mac. It doesn't prompt me for my user password, which it used to, so I've made progress. Thank you for all of your help. |
That host key verification fails means that the user running Homebridge does not trust your Mac. If you run Homebridge as another user than you're using when testing to SSH into the machine, this can easily be fixed. When you first connect to a machine you usually get a prompt like this:
Accepting it will add it to the file You can try the following to connect to the server once as the user running Homebridge to ensure that the Mac is marked as trusted:
If you are running Homebridge as another user, you will also have to setup SSH keys for that user. |
Great, thanks! That fixed the problem! One more question, when I use the Home app to sleep or wake my computer, it doesn't give it enough time to sleep or wake and so it displays an orange exclamation mark and doesn't reflect that it's been toggled off. Can this be fixed? Not sure if it's a plugin problem or a HomeKit problem. Edit: Link to screen recording of what I mean - https://share.icloud.com/photos/08onI2n0qmDWhX9zYuTRnamqg |
I think that's partly the Home app's fault. What's happening is that the plugin does not really respond for about 15 seconds due to the shutdown grace time. This is a design choice as it shows that it is still working with your request. I am unsure as to why the Home app decides to show the accessory as not responding the second it actually does respond. Could you try to set shutdownGraceTime to 0 and try again? If it happens again, it's the plugin's fault. |
Closing as the main problem is solved. As for the orange exclamation mark it's sort of a design choice and as such it's not an issue right now. There is some discussion around this that you can follow over at #84. |
Backstory
Not an issue with the plugin, more with Homebridge and how it works on Windows 10
Issue
I'm trying to use SSH to shutdown and wake my Mac. I can't pass in the password to my Mac through the SSH command, so I tried to set up SSH key authentication, but that doesn't work. I realize that this is out of the scope of this plugin, but I'm hoping someone can point me in the right direction.
Environment
Configuration
My configuration looks like this:
Log
The text was updated successfully, but these errors were encountered: