-
Notifications
You must be signed in to change notification settings - Fork 239
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
Improper handling of ciphers/macs/kexalgorithms in ssh instance is leading to incorrect sshd instance config #400
Comments
ReneTrippen
added a commit
to ReneTrippen/puppet-ssh
that referenced
this issue
Dec 20, 2024
As the man page of sshd_config(5) describes: "Multiple ciphers/macs/kexalgorithms must be comma-separated." Using an array or YAML list for ciphers/mac/kex results in multiple entries in sshd_config. If multiple entries are set in sshd_config, sshd takes only the first one. Fixes saz#400
ReneTrippen
added a commit
to ReneTrippen/puppet-ssh
that referenced
this issue
Dec 20, 2024
As the man page of sshd_config(5) describes: "Multiple ciphers/macs/kexalgorithms must be comma-separated." Using an array or YAML list for ciphers/mac/kex results in multiple entries in sshd_config. If multiple entries are set in sshd_config, sshd takes only the first one. Fixes saz#400 this erb's are really hard to read ...
ReneTrippen
added a commit
to ReneTrippen/puppet-ssh
that referenced
this issue
Dec 20, 2024
As the man page of sshd_config(5) describes: "Multiple ciphers/macs/kexalgorithms must be comma-separated." Using an array or YAML list for ciphers/mac/kex results in multiple entries in sshd_config. If multiple entries are set in sshd_config, sshd takes only the first one. Fixes saz#400
saz
pushed a commit
that referenced
this issue
Dec 24, 2024
) As the man page of sshd_config(5) describes: "Multiple ciphers/macs/kexalgorithms must be comma-separated." Using an array or YAML list for ciphers/mac/kex results in multiple entries in sshd_config. If multiple entries are set in sshd_config, sshd takes only the first one. Fixes #400
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When in ssh instances the Ciphers/MACs/KexAlgorithms are defined as array or as yaml list, the generated sshd_config of the instance has multiple entries for them, this does not work, because sshd picks only the first match. All allowed ciphers, kex and macs are needed as a comma separated string in the sshd_config.
That's the same issue as in #361. But does not affect the main sshd config, only the instances like an extra sftp server.
I'll fix that and make a PR soon
Example
As Yaml list in hiera
entries in generated sshd_config.sftp_server
sshd -T
The text was updated successfully, but these errors were encountered: