fix: Optimize SSH configuration

This commit is contained in:
pulsar89.5 2023-12-19 16:36:21 +01:00
parent bca489a620
commit e4f12deaca

View File

@ -27,6 +27,11 @@
block: | block: |
{% for repository in borgmatic_repositories %} {% for repository in borgmatic_repositories %}
Host {{ repository.path | ansible.builtin.urlsplit('hostname') }} Host {{ repository.path | ansible.builtin.urlsplit('hostname') }}
Compression yes
Protocol 2
PreferredAuthentications=publickey
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentityFile /etc/borgmatic/id_ed25519 IdentityFile /etc/borgmatic/id_ed25519
IdentitiesOnly yes IdentitiesOnly yes
{% endfor %} {% endfor %}