Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostKeyAlgorithms should also be set in sshd_config #62

Open
pinysuse opened this issue Apr 4, 2022 · 1 comment
Open

HostKeyAlgorithms should also be set in sshd_config #62

pinysuse opened this issue Apr 4, 2022 · 1 comment

Comments

@pinysuse
Copy link

pinysuse commented Apr 4, 2022

Issue

Section Client authentication advises to add

    HostKeyAlgorithms [email protected],[email protected],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 [email protected],[email protected],ssh-ed25519,ssh-rsa

to /etc/ssh/sshd_config as well.

@manfred-kaiser
Copy link

Hello, I came across this issue ticket by searching for Terrapin attack.

Setting HostKeyAlgorithms is not recommended by the OpenSSH devs, because this can lead to more mitm warnings. this was discussed with CVE-2020-14145 (ssh fingerprint information leak):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants