{% extends "base.html" %} {% comment %} # SPDX-License-Identifier: AGPL-3.0-or-later {% endcomment %} {% load bootstrap %} {% load i18n %} {% block content %}

{{ title }}

{% csrf_token %} {% if form.ssh_public_key|length_is:"0" %}

{% blocktrans trimmed %} Could not reach SSH host {{ hostname }}. Please verify that the host is up and accepting connections. {% endblocktrans %}

{% if form.keyscan_error %}
{{ form.keyscan_error }}
{% endif %} {% else %}

{% blocktrans trimmed %} The authenticity of SSH host {{ hostname }} could not be established. The host advertises the following SSH public keys. Please verify any one of them. {% endblocktrans %}

{% blocktrans trimmed %} Run the following command on the SSH host machine. The output should match one of the provided options. You can also use DSA, ECDSA, Ed25519 etc. instead of RSA, by choosing the corresponding file. {% endblocktrans %}

ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

{{ form|bootstrap }} {% endif %}
{% endblock %}