Update 'README.md'

This commit is contained in:
2019-11-29 21:56:35 -05:00
parent 31fe72fcbe
commit 5aa382f94e

View File

@@ -1 +1,19 @@
# FreeNAS-Network-Unlock
Configuration variables are changed within the [config.py](config.py) file.
#### Setup password-less SSH connection
You are responsible for setting up the password-less ssh connection from freenas to the other computer. You can use the following as a base.
```
# Run ssh-keygen to create the default ~/.ssh/id_rsa ssh key (no passphrase)
ssh-keygen
# Add the public key of this ssh key to the authorized keys of the PI
# We will be prompted to enter the password of the Pi use in order to access the Pi on this occasion, but once the keys are installed on the Pi we won't need to use the password again
cat ~/.ssh/id_rsa.pub | ssh <KEY_HOST_USER>@<KEY_HOST> 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys'
# Check that password-less access is working by running
ssh <KEY_HOST_USER>@<KEY_HOST>
# You should be dumped straight to the terminal of the Pi without being prompted for a password. You can now logout of the Pi using:
exit
```