瀏覽代碼

Add support for ED25519 host keys

tags/v0.41.0
Franz Pletz 10 年之前
父節點
當前提交
33f21a0976
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. +1
    -1
      openssh/config.sls
  2. +10
    -0
      pillar.example

+ 1
- 1
openssh/config.sls 查看文件

@@ -13,7 +13,7 @@ sshd_config:
- watch_in:
- service: openssh

{% for keyType in ['ecdsa', 'dsa', 'rsa'] %}
{% for keyType in ['ecdsa', 'dsa', 'rsa', 'ed25519'] %}
{% if salt['pillar.get']('openssh:generate_' ~ keyType ~ '_keys', False) %}
ssh_generate_host_{{ keyType }}_key:
cmd.run:

+ 10
- 0
pillar.example 查看文件

@@ -78,3 +78,13 @@ openssh:
-----END RSA PRIVATE KEY-----
public_key: |
ssh-rsa NOT_DEFINED

generate_ed25519_keys: False
provide_ed25519_keys: False
ed25519:
private_key: |
-----BEGIN OPENSSH PRIVATE KEY-----
NOT_DEFINED
-----END OPENSSH PRIVATE KEY-----
public_key: |
ssh-ed25519 NOT_DEFINED

Loading…
取消
儲存