updated ssh state

This commit is contained in:
Paul 2024-02-07 22:00:05 +01:00
parent 520fe3352b
commit 4e95093f8e
2 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,7 @@ ssh:
AllowGroups: admin AllowGroups: admin
X11Forwarding: 'yes' X11Forwarding: 'yes'
ssh_config: ssh_config:
ForwardAgent: 'yes' '*':
ServerAliveInterval: 120 ServerAliveInterval: 120
TCPKeepAlive: 'yes' TCPKeepAlive: 'yes'
AddKeysToAgent: 'yes' AddKeysToAgent: 'yes'

View File

@ -2,6 +2,9 @@
{%- from "ssh/map.jinja" import ssh with context %} {%- from "ssh/map.jinja" import ssh with context %}
{%- for key, value in ssh.ssh_config.items() %} {%- for match, values in ssh.ssh_config.items() %}
{{ key }} {{ value }} Host {{ match }}
{%- for param_key, param_value in values.items() %}
{{ param_key }} {{ param_value }}
{%- endfor %} {%- endfor %}
{% endfor %}