aboutsummaryrefslogblamecommitdiffstats
path: root/roles/users/templates/authorized_keys.j2
blob: 73315aa0effcc19785b8658e43e82e3e5b89e1d4 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                                                        
         

              
{% if users[item] == 'jumponly' %}
{%   for key in userdata[item].authorized_keys %}
restrict,command="echo 'This account can only be used for ProxyJump (ssh -J)'",port-forwarding {{ key }}
{%   endfor %}
{% else %}
{%   for key in userdata[item].authorized_keys %}
{{ key }}
{%   endfor %}
{% endif %}