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.

Unraid 7.1.2 unable to authenticate through ssh with publickey

Featured Replies

Hey,

 

since upgrading to 7.1.2 I have problems logging in via ssh. 

I use a publickey, which I have previously entered under Users -> root -> SSH authorized keys.

 

Under Unraid 7.0.1 the authentication has worked without any problems. Now I seem to get a public and private key mismatch.

Under Windows I have already checked if I can verify the private and public key. 

 

The following commdand executed under windows returns me exactly the publickey that is entered under the authorized keys:

ssh-keygen.exe -y -e -f <private_key>

 

The following can be seen in the logs:

May 14 15:17:43 PurpleGravity sshd-session[3945698]: Failed publickey for root from 192.168.0.10 port 64792 ssh2: ED25519 SHA256:<another key>

"Another key" is neither the public- nor privatekey fingerprint I use for authentication

 

I have also tried to create a fresh key pair again, unfortunately the same error occurs, also with a mismatch

Edited by purplehexagon

Solved by purplehexagon

I'm having the exact same issue and cannot figure out why it is happening, I think that it started when I upgraded to 7.1.0rc<something>.

 

I already tried to put a new key, it keeps refusing the key.

I don't know if its related but I can drop it here because I couldn't find anything relevant online.

Since the 7.1 update, my solid explorer app on my Android phone would no longer connect using sftp to my Unraid server. It turned out that Unraid changed/updated the accepted ciphers on the recent version. So adding these 2 lines to sshd_config solved the issue:

 

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]

KexAlgorithms curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256


Then restart the SSH service:

 

/etc/rc.d/rc.sshd restart


To persist the change on reboot, make a copy of the file and put it inside:

 

/boot/config/ssh

 

I also had problem logging in with SSH after updating from 7.0.1 to 7.1.2.

For me it turned out I was missing an
/etc/rc.d/rc.sshd restart
after my plugin-script had copied my personalized version of the sshd_config to /etc/ssh. Apparently things ran in a different order before, or for some other reason I didn't have to restart th sshd before .

  • Author
  • Solution

Well, I'm really sorry. For me it was just a typo in /etc/ssh/sshd.config where I had written "autorized_keys" without an "h".

I will mark it as resolved.

  • 1 month later...
On 5/20/2025 at 11:28 AM, m33ts4k0z said:

I don't know if its related but I can drop it here because I couldn't find anything relevant online.

Since the 7.1 update, my solid explorer app on my Android phone would no longer connect using sftp to my Unraid server. It turned out that Unraid changed/updated the accepted ciphers on the recent version. So adding these 2 lines to sshd_config solved the issue:

 

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]

KexAlgorithms curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256


Then restart the SSH service:

 

/etc/rc.d/rc.sshd restart


To persist the change on reboot, make a copy of the file and put it inside:

 

/boot/config/ssh

 

My SSH-Service won't start as soon as I add those two lines to the config. Im using 7.2. Beta 2, does someone know if it has to be done somehow else?

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.