Merge pull request #380 from mpraeger/feature/host_certificates

add Support for OpenSSH HostCertificate config option
This commit is contained in:
schurzi 2021-01-22 10:43:32 +01:00 committed by GitHub
commit 66feb7c2ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,9 @@ ssh_listen_to: ['0.0.0.0'] # sshd
# Host keys to look for when starting sshd.
ssh_host_key_files: [] # sshd
# Host certificates to look for when starting sshd.
ssh_host_certificates: [] # sshd
# Specifies the host key algorithms that the server offers
ssh_host_key_algorithms: [] # sshd

View file

@ -38,6 +38,11 @@ ListenAddress {{ address }}
HostKey {{ key }}
{% endfor %}
# HostCertificates are listed here.
{% for certificate in ssh_host_certificates -%}
HostCertificate {{ certificate }}
{% endfor %}
# Host key algorithms that the server offers.
{% if sshd_version is version('5.8', '>=') %}
{{ "HostKeyAlgorithms " ~ ssh_host_key_algorithms|join(',') if ssh_host_key_algorithms else "HostKeyAlgorithms"|comment }}