Non-persistent SSH access, the following will last till the next server reboot.
- If necessary, generate an SSH key on your Mac or Linux machines, using
ssh-keygen
- Create an
authorized_keys
file for the unRAID server, using theid_rsa.pub
files on all the machines which require access. - Copy this file to your server's
/root/.ssh/
folder.
This will work until a reboot. To handle a persistent setup:
- Copy the authorized_keys file to
/boot/config/ssh/root.pubkeys
- Copy
/etc/ssh/sshd_config
to/boot/config/ssh
- 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
One thought on “UnRAID Server: Adding Password-less login”