brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: put your SSH public key in /boot/config/ssh/root so it survives a reboot

Security
~/tips/tip-unraid-ssh-keys-boot-config

nano /boot/config/ssh/root/authorized_keys

Keeps your SSH key login working after Unraid restarts, by storing the key on the flash drive.

Unraid forgets everything outside the flash drive at reboot, including a key you added by hand.

The 6.9.0 release notes say to put the authorized_keys file in /boot/config/ssh/root/. A symlink from /root/.ssh points to that folder, so a key added in /root/.ssh ends up in the same place. At boot, files in config/ssh (not its subfolders) are copied to /etc/ssh. If an old go script copies keys, remove that part.

nano /boot/config/ssh/root/authorized_keys

Paste your public key on its own line. Two caveats. Only root can log in over SSH, and root needs a password that is not empty. And the key field on the root user page accepted only RSA and ECDSA keys in 6.10.3, not ed25519, according to a bug report. I do not know if that is still true, so I edit the file.

Further reading: Unraid docs: Version 6.9.0 release notes, Unraid forum bug report: root SSH authorized keys field and ed25519, On this site: /boot/config/go runs your own commands at every boot, On this site: mirror the syslog to the boot drive, but only for a few days

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link