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.

Seit 7.1.x Änderungen mit ssh?

Featured Replies

  • Community Expert

Moin zusammen,

 

in den Release-Notes zur 7.1.0 stand u.a. Folgendes:

Quote

Fix: On boot, custom ssh configuration copied from /boot/config/ssh/ to /etc/ssh/ again

 

Damals in den Release-Notes zur 6.9.0 gab es "SSH Improvements":

Quote

There are changes in /etc/ssh/sshd_conf to improve security (thanks to @Mihai and @ljm42 for suggestions):

  • only root user is permitted to login via ssh (remember: no traditional users in Unraid OS - just 'root')
  • non-null password is now required. To set a password go to the Users tab (or Settings -> Users, depending on your configuration), then choose the "root" user, type a complex password twice and press CHANGE (not RESET)
  • non-root tunneling is disabled

 

In addition, upon upgrade we ensure the config/ssh/root directory exists on the USB flash boot device; and, we have set up a symlink: /root/.ssh to this directory.  This means any files you might put into /root/.ssh will be persistent across reboots.

 

So, if you had previously added commands to your go script to copy authorized_keys and other files to /root/.ssh, you should remove those commands and simply put the files in config/ssh/root, then reboot.

 

Note: if you examine the sshd startup script /etc/rc.d/rc.sshd, upon boot all files from the config/ssh directory are copied to /etc/ssh (but not subdirs).  The purpose is to restore the host ssh keys; however, this mechanism can be used to define custom ssh_conf and sshd_conf files.

 

Auf einem meiner Server hole ich per curl (SFTP) nach dem Boot ein keyfile zum entschlüsseln der Datenträger.

Seit 7.1.0 klappte das nicht mehr.

Ich musste nun zunächst die "known_hosts" manuell erstellen. Landet dann ja unter /root/.ssh

Diese "known_hosts" habe ich dann auf den Stick gesichert und wird vor dem curl-Befehl vom Stick zu /root/.ssh kopiert.

Erst dann funktioniert der curl-Befehl wieder.

 

Kann jemand sagen, ob die oben genannten Änderungen seit 7.1.x dieses "Problem" auslösen?

Solved by alturismo

  • Solution
11 hours ago, saber1 said:

Seit 7.1.0 klappte das nicht mehr.

 

das war hier auch mal kurz, nächster Neustart / Update, ging es wieder (ohne neu host Datei zu setzen), nur als Info.

 

und Nein, aktuell auf 7.1.2, alles ok

  • Author
  • Community Expert
53 minutes ago, alturismo said:

aktuell auf 7.1.2, alles ok

Okay, habe das mal eben gecheckt:

Befehle bezüglich Kopieren der known_hosts auskommentiert.

Nun klappt es wieder wie zuvor.

 

Am WE sicher einige Male probiert. Klappte nicht mehr.

Nun gut, auch hier wieder alles in Ordnung (7.1.2).

 

55 minutes ago, alturismo said:

das war hier auch mal kurz

Hast Du eine Erklärung dafür? Magic?

9 hours ago, saber1 said:

Hast Du eine Erklärung dafür? Magic?

da ich aktuell wenig Zeit habe und nicht nachgeschaut hatte, tendiere ich zu "Magic" ;)

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.