I need to help with disabling PasswordAuthentication for SSH connection from Hass.io to Windows PC. I use community add-on OpenSSH and I’m trying remotely shutdown PC from Raspberry Pi. I set PasswordAuthentication to NO in /etc/ssh/sshd_config but it doesn’t work.
I havent used ssh to a window client, but to ssh to linux without a password you need to create a keyfile and add that key to the remote servers .ssh/authorized_keys in the home directory for the user you want to log in to.
For remote shutdown from linux to windows I prefer a different approach by setting up eventghost to listen for a http request.
Another approach to consider is to use the net rpc command call shutdown remotely. This might work if you have samba-tools installed but I haven’t used it in a long time and I am not sure about the windows 10 compability.
Thank you for replying. I knowed about net rpc command, but I wanted to figure out SSH password issue, because I think SSH is more powerful tool for “everything”. But thank you for “eventghost”, I don’t know about this software. I’ll try it. Thak you.
I give up. I tried to do bunch of tutorials from internet, but nothing works. Someone smart said, that it is due to new Windows 10 issue and it`s happens when after last update. So if someone figure out this problem, please post it here.