UnRAID Server: Adding Password-less login

Non-persistent SSH access, the following will last till the next server reboot.

  1. If necessary, generate an SSH key on your Mac or Linux machines, using ssh-keygen
  2. Create an authorized_keys file for the unRAID server, using the id_rsa.pub files on all the machines which require access.
  3. Copy this file to your server's /root/.ssh/ folder.

This will work until a reboot. To handle a persistent setup:

  1. Copy the authorized_keys file to /boot/config/ssh/root.pubkeys
  2. Copy /etc/ssh/sshd_config to /boot/config/ssh
  3. Modify /boot/config/ssh/sshd_config to set the following line
AuthorizedKeysFile      /etc/ssh/%u.pubkeys

Applying the settings

You won't be able to access the server right away after these config changes, you would need to restart the service. As Unraid is based on Slackware distro.

/etc/rc.d/rc.sshd restart 

References

One thought on “UnRAID Server: Adding Password-less login

Leave a Reply

%d bloggers like this: