瀏覽代碼

Adding a small variable to the OpenSSH sshd_config file so that the service will work correctly on Centos 6.4 and earlier

tags/v0.41.0
Mark Eggert 11 年之前
父節點
當前提交
2e229681c7
共有 2 個檔案被更改,包括 5 行新增0 行删除
  1. +4
    -0
      openssh/files/sshd_config
  2. +1
    -0
      openssh/init.sls

+ 4
- 0
openssh/files/sshd_config 查看文件

@@ -102,7 +102,11 @@ PrintMotd no # pam does that
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
{% if grains['os_family'] == 'RedHat' %}
UsePrivilegeSeparation yes # RedHat/Centos 6.4 and earlier currently ship 5.3 (sandbox introduced in OpenSSH 5.9)
{% else %}
UsePrivilegeSeparation sandbox # Default for new installations.
{% endif %}
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0

+ 1
- 0
openssh/init.sls 查看文件

@@ -29,6 +29,7 @@ sshd_config:
file.managed:
- name: /etc/ssh/sshd_config
- source: salt://openssh/files/sshd_config
- template: jinja
- user: root
- mode: 600


Loading…
取消
儲存