diff --git a/plinth/modules/backups/templates/verify_ssh_hostkey.html b/plinth/modules/backups/templates/verify_ssh_hostkey.html index 91ec0e558..5c549abb6 100644 --- a/plinth/modules/backups/templates/verify_ssh_hostkey.html +++ b/plinth/modules/backups/templates/verify_ssh_hostkey.html @@ -28,35 +28,45 @@
{% csrf_token %} -

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

- -
+ {% 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 %} +

+ {% else %} +

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

-
-

- {% 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 %} -

-

- sudo ssh-keygen -lf /etc/ssh/ssh_host_rsa_key -

-
-
- {{ form|bootstrap }} +
+

+ +

+
+

+ {% 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 %} +

+

+ sudo ssh-keygen -lf /etc/ssh/ssh_host_rsa_key +

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