I did not find a specific tutorial, so here is a step-by-step for enabling ‘no password’ access from your Linux machine into your openhabian install (Sorry, this does not cover Windows). In my case, openhabian is installed on a RPi 3.
On both your client (the one you are using to connect to openhabian) and host (the openhabian one) you need to have openssh installed. openssh should already be installed on openhabian, but verify by logging into openhabian and run this on the command line:
sudo systemctl status ssh
Next, you will need to change permissions in openhabian so your client can place a public key in openhabian (you may need sudo with these commands):
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
Now, exit openhabian. Then install openssh on your client machine (if not already installed).
From the command line of your client machine, verify that is done with the same command used earlier for openhabian:
sudo systemctl status ssh
If that fails, you might need to check for the daemon instead:
sudo systemctl status sshd
Next, while still on your client machine, we are going to create a key pair and publish a public key from it to your openhabian host machine.
Generate a key pair with the following command (NOTE----> do NOT enter a password for your keypair):
ssh-keygen
Then, send the public key to openhabian:
ssh-copy-id openhabian@<IP_address_openhabian>
That’s it!
Test your no password connection by connecting to openhabian from the command line of your client machine with:
ssh openhabian@<IP_address_openhabian>