OpenSSH sshd_config

  • Is there any to customize OpenSSH server configuration in LibreELEC?

    I mean either override /etc/ssh/sshd_config as a whole, or by including additional snippets.

    Need to customize ssh port, as well as tighten encryption algorithms.

    Default configuration is rather lax, ssh-audit gives following recomendations:

  • Create a drop in file to use custom sshd_config (untested):

    Code: /storage/.config/system.d/sshd.service.d/config_file.conf
    [Service]
    ExecStart=
    ExecStart=/usr/sbin/sshd -D -f /storage/.config/sshd_config $SSH_ARGS