Jump to content

[Armbian build PR] - RFC: fix #6686: Debian: enable ssh.service and make it work reliably on armbian-firstrun


RSS Bot

Recommended Posts

Description

ssh.service activation fails on first boot due to a race condition with armbian-firstrun (missing host keys at ssh.service startup)

By changing armbian-firstrun.service to run After=ssh.service SBC is always reachable realibaly via ssh, even on first run, so that it can be configured headlessly by remote login

IT also reverts commit IDs: #911c756083164c32051d533ca3f2de488f202130 and #30c47f6f6cebd75f5c28866918fea093b8c82b44 disabling ssh.socket - this fixes SSH Deamon behavious to honour ListenAddress directive when set via sshd_config

Jira reference number [AR-2356]

How Has This Been Tested?

  • [x] Compiled and first-run vanilla armbian Bookworm-Edge
  • [x] Compiled and first-run vanilla Armbian Trixie-Edge
  • [x] Simulated additional first-run(s) via systemd enable armbian-firstrun.service and touch /root/.not_logged_in_yet(Bookworm-Edge && Trixie-Edge)

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] My changes generate no new warnings

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines