summaryrefslogtreecommitdiff
path: root/data/templates/login/authorized_keys.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/login/authorized_keys.j2')
-rw-r--r--data/templates/login/authorized_keys.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/login/authorized_keys.j2 b/data/templates/login/authorized_keys.j2
new file mode 100644
index 000000000..aabca47cf
--- /dev/null
+++ b/data/templates/login/authorized_keys.j2
@@ -0,0 +1,9 @@
+### Automatically generated by system-login.py ###
+
+{% if authentication.public_keys is vyos_defined %}
+{% for key, key_options in authentication.public_keys.items() %}
+{# The whitespace after options is wisely chosen #}
+{{ key_options.options ~ ' ' if key_options.options is vyos_defined }}{{ key_options.type }} {{ key_options.key }} {{ key }}
+{% endfor %}
+{% endif %}
+