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.

[SOLVED] Public Key Auth Failed after 6.8.0 Upgrade

Featured Replies

Not sure why this is failing.

 

I currently have my authorized_keys file stored at

/boot/config/ssh/authorized keys

 

My go file has a line which runs a script

#persist the Authorized Keys

/boot/config/ssh/setup_ssh_client.sh

 The setup_ssh_client.sh script does:

#!/bin/bash
mkdir /root/.ssh
chmod 700 /root/.ssh
cp /boot/config/ssh/authorized_keys /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

But even after manually putting the file in that location and then restarting the SSH Daemon, still getting public key error.

 

o_O Am i just having one of those days and it's blatantly obvious?

 

tried generating a new key pair but that didn't work :/

Edited by techsperion
Solved

  • Community Expert

change:

/boot/config/ssh/setup_ssh_client.sh

to

bash /boot/config/ssh/setup_ssh_client.sh

 

  • Author

ta! that might fix the automation piece - but still spinning as to why after manually putting the file in the correct location it's still failing :/

  • Community Expert

See release notes, it's because of improved security, scripts can no longer be executed directly from the flash drive.

  • Author
1 hour ago, johnnie.black said:

See release notes, it's because of improved security, scripts can no longer be executed directly from the flash drive.

Thanks @johnnie.black, I think the script is a red herring here so lets leave it to one side. 

 

I manually add my public key to the

/root/.ssh/authorized_keys

I should be able to SSH in using Public Key Auth but it fails.

Can't undestand it :/

  • Author

Seems like the permissions for the /root/.ssh folder now require 755 as opposed to 700

 

So to resolve this, wherever your script is running:

chmod 755 /root/.ssh

All working now

:)

 

  • Author
20 hours ago, johnnie.black said:

change:


/boot/config/ssh/setup_ssh_client.sh

to


bash /boot/config/ssh/setup_ssh_client.sh

 

Also thanks for this! Was getting permission denied in the User Scripts plugin and this change allowed the script to run :)

Archived

This topic is now archived and is closed to further replies.

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.