Closed 0xf10e closed 5 years ago
I think the issue is probably in this line which sets the default keys to generate if no keys are specified and you're right, Centos6 does not support ED25519.
Perhaps a better approach would be to set these defaults in an osfingermap.yaml
file (like here) instead of forcing these defaults in the template itself.
As a temporary fix, you can set the parameter HostKey
in your pillar.
@javierbertoli I think you are right the the osfingermap.yaml but it should be extended not only to the 'KeyType' in the config.sls but also the 'HostKey' in the sshd_config jinja template. preferable they should be linked so if you update the KeyType to include a ed25519 key it should also update the sshd_config file to include it.
does anybody has fix for this ?
Same issue with Debian Jessie.
I need to add the older Hostkey to make ssh work again
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
@javierbertoli @aboe76 @hudecof @kadogo I'll try to come up with a PR in the next two or three weeks. :-) (Sry, times are busy.)
If you could provide me with a list of ciphers (rsa/dsa/...) your distribution(s) accept, need and reject, that would help a lot. Thanks in advance!
@javierbertoli @aboe76 osfingermap.yaml
it is, but I'll try to use strong defaults as much as possible, meaning that I'll only weaken the ciphers when the distribution requires that.
@alxwr no problem osfingermap.yaml
hopefully the supported ciphers are easy to find.
@alxwr perhaps this article helps? https://infosec.mozilla.org/guidelines/openssh
@javierbertoli Thanks!
Should be fixed in #151.
While testing #97 I've noticed the
check_cmd
fails on CentOS 6:The "Permission denied" error is pretty strange, could even be a bug in CentOS 6's python (see versions-report below). But I have another concern: When I run the check manually there's the problem with missing hostkeys
While one can manually generate an ECDSA hostkey, ED25519 keys are not supported on CentOS 6:
Removing
'ed25519'
fromopenssh/config.sls
doesn't help as thecheck_cmd
still fails with this "Permission denied" error. Though the SSH-server actually starts when a host key listed in its config is missing (tested by removing thecheck_cmd
line fromopenssh/config.sls
).PS: Versions-report and pillar data: