{% from "_macros.html" import icon %} {# What looking at a host found. Everything here came from the far side and is escaped accordingly. The fingerprint especially: it is the one string a person is being asked to compare against something they know, so it is shown plainly and never reformatted. #} {% if error %}
{{ icon("warning", "icon--sm") }} {{ error }}
{% endif %} {% if offer %}

{{ "This host's key has changed" if offer.changed else "Is this the machine you meant?" }}

{% if offer.changed %} Accept only if you know why it changed — a rebuilt container will do this, and so will something pretending to be your machine. {% else %} Compare this with what the host reports for itself. On the machine, that is ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub. {% endif %}

{{ offer.fingerprint }}
{% if profile.verified %} {% endif %}
{% endif %} {% if accepted %}
{{ icon("check", "icon--sm") }} Pinned {{ accepted }}. Check again to log in.
{% endif %} {% if forgotten %}
{{ icon("warning", "icon--sm") }} Key forgotten. Check again to see the new one.
{% endif %} {% if found %}
{{ icon("check", "icon--sm") }} Connected{% if found.system %} to {{ found.system }}{% endif %}.

What it said:

{{ found.output }}
{% endif %}