{# Rdiffweb SSHKeys plugins Copyright (C) 2018 Patrik Dufresne Service Logiciel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . #}
{% include 'message.html' %} {% from 'include/modal_dialog.html' import modal_dialog, button_confirm, modal_confirm %}
{% trans %}SSH Keys{% endtrans %} ({{ sshkeys | length }})

{% trans %}SSH keys allow you to establish a secure connection between your computer and this backup system. This is a list of SSH keys associated with your account. Remove any keys that you do not recognize.{% endtrans %}

    {% for key in sshkeys %}
  • {{ button_confirm(label=_('Delete'), target="#delete-sshkey-modal", action="delete", key=key.fingerprint) }}
    {{ key.title }}

    {{ key.fingerprint }}

  • {% endfor %}
{# Dialog to create SSH key. #} {% call modal_dialog('add-sshkey-modal',_('Add SSH key'), _('Add SSH key')) %}

{% trans %}The title is an optional description to identify the key. e.g.: bob@thinkpad-t530{% endtrans %}

{% trans %}Enter a SSH public key. It should start with 'ssh-dss', 'ssh-ed25519', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384' or 'ecdsa-sha2-nistp521'.{% endtrans %}

{% endcall %} {{ modal_confirm( id='delete-sshkey-modal', title=_('Delete SSH key'), message=_("Are you sure you want to delete this SSH Key?"), fields=['action', 'key'], submit=_('Delete')) }}