Skip to content

HostKeyAlgorithms should also be set in sshd_config #62

@pinysuse

Description

@pinysuse

Issue

Section Client authentication advises to add

    HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa

to section Host * of /etc/ssh/ssh_config.

At least in OpenSuse Leap 15.3 the command

systemctl restart sshd.service

triggers

ssh-keygen -A

(for good or for bad) and those deleted keys are recreated.

man sshd_config

    [...]
    HostKey
        [...]
        Note that [...] that the HostKeyAlgorithms option restricts which of the keys are actually used by sshd(8).
        [...]

Proposal

Add

HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa

to /etc/ssh/sshd_config as well.

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