Skip to content

ssh-keygen segfaults on S912 with kernel 6.18.22 #3492

@FenrixiR

Description

@FenrixiR

Device Information | 设备信息

  • SOC: [S912]
  • Model [DSDevices DSCS9, though not applicable as it is reproducible on other devices too]

Armbian Version | 系统版本

  • Armbian_26.05.0_amlogic_s912_trixie_6.18.22_server_2026.04.18.img
  • Kernel Version: [6.18.22]
  • Release: [trixie]

Describe the bug | 问题描述
ssh-keygen -A segfaults on kernel 6.18.22 on Amlogic S912 hardware, preventing openssh-server from starting. The issue does not occur on kernel 6.12.81 with the same image/hardware.

To Reproduce

  1. Flash Armbian_26.05.0_amlogic_s912_trixie_6.18.22_server_2026.04.18.img
  2. Boot on S912 hardware
  3. Attempt to start SSH: systemctl start ssh
  4. SSH fails — journalctl shows ConditionFirstBoot=yes causing host key generation to be skipped
  5. Manual ssh-keygen -A produces a segmentation fault
  6. dpkg-reconfigure openssh-server also segfaults at the same point

Expected behavior
SSH host keys are generated and sshd starts successfully on first boot, as it does on kernel 6.12.81.

Kernel versions tested

  • 6.12.81 — works correctly (Armbian_26.05.0_amlogic_s912_trixie_6.12.81_server_2026.04.18.img)
  • 6.18.22 — segfaults on ssh-keygen (Armbian_26.05.0_amlogic_s912_trixie_6.18.22_server_2026.04.18.img)

Additional context
The segfault occurs in openssh-server's post-install script during ssh-keygen -A, suggesting a possible OpenSSL/libcrypto incompatibility with kernel 6.18.22 on aarch64 S912.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions