November 9, 20232 yr OK, there is just too much old information on the forums and I am unclear. I am having issues with SSH keys not remaining persistent after reboot. I cannot tell if there are some old entries in the /boot/config/go that need to be removed Here is the go file: #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & #Copies all files needed for authorized ssh connections mkdir /root/.ssh cp /boot/config/ssh/* /root/.ssh/ cd /root/.ssh chmod 600 * Are the lines under "#Copies all files needed for authorized ssh connections" no longer needed so I can delete them? I am running Unraid 6.12.4
November 9, 20232 yr Community Expert With the current release you don't need anything in the GO file, delete all those extra lines.
January 2, 20242 yr Author Persistent SSH is still a no go. I have created ed25519 keys for both servers (Unraid1 & UnraidBackup) Made sure the root users of each server have a copy of the key (I can see the key listed under the root user.) SSHed from Unraid1 to UnraidBackup by terminal and run the command Quote rsync -arv --delete --human-readable --info=progress2 -e "ssh -i /root/.ssh/id_ed25519" /mnt/user/docs/ [email protected]:/mnt/user/docs/ Said "Yes" to add the SSH user to the authoized_users list I removed the entries in the go file that are no longer needed [see above] Each time UnraidBackup is rebooted I am confronted with Quote The authenticity of host '10.253.0.20 (10.253.0.20)' can't be established. ED25519 key fingerprint is [key is listed here]. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? Am I missing something?
January 2, 20242 yr Community Expert Solution This is how I do it: Generate key: ssh-keygen NOTE: when generating the key use a blank password or it will ask for it anytime you use that key. Copying your Public Key Using SSH: cat ~/.ssh/id_rsa.pub | ssh root@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
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.