Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Persistent SSH Confused

Featured Replies

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

Solved by JorgeB

  • Community Expert

With the current release you don't need anything in the GO file, delete all those extra lines.

  • 1 month later...
  • 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?

  • 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"


 

  • Author

Do I need to remove any previous entries in authorized_keys?

  • Community Expert

Should not be needed, but you can also remove them.

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.