浏览代码

fix(sshd_config): drop UsePrivilegeSeparation (fixes #183)

pull/209/head
Alexander Weidinger 11 个月前
父节点
当前提交
46effa63da
共有 2 个文件被更改,包括 0 次插入14 次删除
  1. +0
    -11
      openssh/config.sls
  2. +0
    -3
      openssh/files/default/sshd_config

+ 0
- 11
openssh/config.sls 查看文件

@@ -129,14 +129,3 @@ ssh_host_{{ keyType }}_key.pub:
- service: {{ openssh.service }}
{%- endif %}
{%- endfor %}

{%- if sshd_config.get('UsePrivilegeSeparation', '')|lower == 'yes' %}
/var/run/sshd:
file.directory:
- user: root
- mode: 755
- require_in:
- file: sshd_config
- watch_in:
- service: {{ openssh.service }}
{%- endif %}

+ 0
- 3
openssh/files/default/sshd_config 查看文件

@@ -86,9 +86,6 @@
{#- HostKeys for protocol version 2 -#}
{{- option('HostKey') -}}

{#- Privilege Separation is turned on for security -#}
{{- option('UsePrivilegeSeparation') -}}

{#- Logging -#}
{{- option('SyslogFacility') -}}
{{- option('LogLevel') -}}

正在加载...
取消
保存