December 21, 20223 yr Trying to set up SSH keys between Mac OS and Unraid. The intent is to log into Unraid from MacOS. I followed a few different guides here but always get to the same result...the login fails and falls back to password. I get this in the Unraid log: Dec 21 09:26:41 Tower sshd[29312]: Connection from 192.168.1.14 port 53913 on 192.168.1.10 port 22 rdomain "" Dec 21 09:26:41 Tower sshd[29312]: Failed publickey for root from 192.168.1.14 port 53913 ssh2: ED25519 SHA256:<blah blah blah> Dec 21 09:26:41 Tower sshd[29312]: Postponed keyboard-interactive for root from 192.168.1.14 port 53913 ssh2 [preauth] Dec 21 09:26:44 Tower sshd[29312]: Connection closed by authenticating user root 192.168.1.14 port 53913 [preauth] I have created ED25519 keys and used ssh-copy-id to copy them to the server, but I get this in the output there which seems different from others: Number of key(s) added: 1 Some people get 2 there, not sure if that's relevant. I have persisted the changes to the flash following another guide as well. I have verified that the public key is showing correctly in my Root user settings in the GUI. What else can I try here?
December 21, 20223 yr Author Solution Fix it. I had to edit this file and manually add my public key: /etc/ssh/root.pubkeys
January 16, 20233 yr Author Further to this, it did not persist after a reboot, so I saved a copy of the root.pubkeys file on the flash and added a command to the go file to copy it into the /etc/ssh/ folder on boot.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.