瀏覽代碼

Tiny fixes in SSH configuration

Emmanuel Bouthenot 9 年之前
父節點
當前提交
00bd792069
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/common/templates/ssh/sshd_config.j2

+ 1 - 1
roles/common/templates/ssh/sshd_config.j2

@@ -117,7 +117,7 @@ AllowUsers {{ ssh_allowed_users | join(' ') }}
 AllowGroups {{ ssh_allowed_groups | join(' ') }}
 {% endif %}
 
-{% if ssh_local_config is defined %}
+{% if ssh_local_config is defined and ssh_local_config %}
 # Additional parameters
 {{ ssh_local_config|join('\n') }}
 {% endif %}