mirror of
https://github.com/roles-ansible/ansible_role_sshd.git
synced 2024-08-16 11:59:49 +02:00
update cypher and hostkeys
This commit is contained in:
parent
289ab2be94
commit
4c1d0d8cb7
2 changed files with 33 additions and 11 deletions
|
@ -13,6 +13,22 @@ sshd:
|
|||
# - ecdsa
|
||||
# - dsa # (do not use!)
|
||||
|
||||
key_algorithmus:
|
||||
- 'ssh-ed25519-cert-v01@openssh.com'
|
||||
- 'ssh-ed25519'
|
||||
# - 'ecdsa-sha2-nistp521-cert-v01@openssh.com'
|
||||
# - 'ecdsa-sha2-nistp384-cert-v01@openssh.com'
|
||||
# - 'ecdsa-sha2-nistp256-cert-v01@openssh.com'
|
||||
# - 'rsa-sha2-512-cert-v01@openssh.com'
|
||||
# - 'rsa-sha2-256-cert-v01@openssh.com'
|
||||
# - 'ssh-rsa-cert-v01@openssh.com'
|
||||
# - 'ecdsa-sha2-nistp521'
|
||||
# - 'ecdsa-sha2-nistp384'
|
||||
# - 'ecdsa-sha2-nistp256'
|
||||
# - 'rsa-sha2-512'
|
||||
# - 'rsa-sha2-256'
|
||||
# - 'ssh-rsa'
|
||||
|
||||
kex_algorithmus:
|
||||
- 'curve25519-sha256@libssh.org'
|
||||
- 'diffie-hellman-group-exchange-sha256'
|
||||
|
|
|
@ -26,20 +26,26 @@ MACs
|
|||
{{ ' ' }}{{ mac }}{{ "," if not loop.last }}
|
||||
{%- endfor %}
|
||||
|
||||
{#
|
||||
# Server authentication
|
||||
Protocol 2
|
||||
{% if ansible_distribution_release == 'wheezy' %}
|
||||
# HostKey /etc/ssh/ssh_host_ed25519_key
|
||||
{% else %}
|
||||
HostKey /etc/ssh/ssh_host_ed25519_key
|
||||
{% if generate_ecdsa_too %}
|
||||
HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
# Not available in openssh 6.7
|
||||
# HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
|
||||
|
||||
{% if sshd.manage_key_types | bool -%}
|
||||
# host key types
|
||||
{% for key in sshd.key_types %}
|
||||
HostKey /etc/ssh/ssh_host_{{ key }}_key
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
# HostKeyAlgorithms
|
||||
# Maybe not available in openssh 6.7
|
||||
HostKeyAlgorithms
|
||||
{%- for key in sshd.key_algorithmus -%}
|
||||
{{ ' ' }}{{ key }}{{ "," if not loop.last }}
|
||||
{%- endfor %}
|
||||
|
||||
|
||||
{#
|
||||
# Client authentication
|
||||
PasswordAuthentication {{ sshd_password_authentication }}
|
||||
ChallengeResponseAuthentication no
|
||||
|
|
Loading…
Reference in a new issue