{# R71 (Hani #1 2026-11-10): the repair steps, shared by the Details panel and the popup opened from the Monitoring warning. The cause first in plain words, then the one step to do now with its form in place. Needs repair (R), integration, can(), session; optional tq, connection (the last Connection check), repair_console. #} {% set R = repair %}{% set d = R.destination %}{% set TQ = tq if tq is defined else '?tab=' %}
{{ R.cause.title }}. {{ R.cause.text }} {{ fresh_tag("device:repair-cause") }}

Repair the connection

NEXXVU cannot use {{ integration.name }} right now. Do the steps in order; each one shows when it is done. {% if connection_available %}Check the connection shows the evidence.{% endif %}

    {% for s in R.steps %}
  1. {{ s.title }}{% if s.state == 'done' %} Done{% endif %} {% if s.key == R.current %} {% if s.key == 'address' %} {% if s.state == 'request' %}

    NEXXVU contacts only approved addresses. Ask for the approval; NEXXVU then observes the device's SSH key.

    {% if can('repair-request') %}
    {% endif %} {% elif s.state == 'wait' %}

    NEXXVU is observing the device's key, or the approval is being applied (the Portal restarts once). Reload in a few seconds.

    {% else %}

    NEXXVU observed this key: {{ d.fingerprint }}. Compare it with the device's own, on its console - Ubuntu: ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub; MikroTik: /ip ssh print - then approve.

    {% if can('destination-approve') %}
    {% else %}

    A Portal administrator approves it.

    {% endif %}{% endif %} {% elif s.key == 'identity' %}{% set cc = connection if connection is defined else none %} {% if cc and cc.fix == 'replace_key' %}

    The device now presents {% for p in cc.presented %}{{ p }}{% if not loop.last %} or {% endif %}{% endfor %}. Check it on the device's console (Ubuntu: ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub; MikroTik: /ip ssh print). If it matches, replace the approved key; the Portal restarts once and step 1 asks you to approve the new key.

    {% if can('replace-key') %}
    {% else %}

    A Portal administrator replaces the approved key.

    {% endif %} {% else %}

    First let NEXXVU read the key the device presents now (nothing is changed, NEXXVU does not sign in).

    {% if can('connection-check') %}
    {% endif %} {% endif %} {% elif s.key == 'account' and R.foreign_account %}

    The server account “{{ R.account_name }}” is not NEXXVU's own, and NEXXVU installs only its own account ({{ R.own_account }}: no password, no sudo, signs in only from this Portal). Switch to it - the Portal makes a new key - then install that key in the same step.

    {% if can('repair-switch-account') %}
    {% else %}

    A Portal administrator does this step.

    {% endif %} {% elif s.key == 'account' %}

    The device refused NEXXVU's key{% if R.error == 'auth_failed' %} (the Portal's key is not the one on the device - for example after "Generate a new key pair", or the account was changed on the device){% endif %}. NEXXVU installs its account and the Portal's current key again, with an administrator account used for this step only.

    {% if can('repair-reinstall') %}
    {% set NK = repair_nexxkey if repair_nexxkey is defined else none %} {% if NK and NK.entry and NK.unlocked %} {% elif NK and NK.entry %}

    NEXXKEY keeps this device's administrator account ({{ NK.entry }}). Unlock NEXXKEY and it fills in here - or enter an account below.

    {% elif NK and NK.vault == 'active' %}

    NEXXKEY keeps no administrator account for this device. Enter one below; afterwards save it under Details › NEXXKEY, so the next repair needs nothing from you.

    {% elif NK %}

    Tip: NEXXKEY (Settings › NEXXKEY) can keep each device's administrator account encrypted, so repairs fill it in.

    {% endif %} {% if R.kept_administrator %}{% endif %}
    {% else %}

    A Portal administrator does this step.

    {% endif %} {% if repair_console is defined and repair_console %}
    No administrator password? Paste these lines on the device's console

    Cloud images often lock the password of “ubuntu”, so no password works over the network. On the device's console (or the hypervisor's), paste:

    {% for line in repair_console %}{{ line }}
    {% endfor %}

    Then choose Validate now. The key is the Portal's current one; it is accepted only from this Portal.

    {% endif %} {% elif R.network %}

    The device does not answer on the network{% if R.error == 'connection_refused' %} (nothing listens on its SSH port){% endif %}: NEXXVU's key was never tried, so nothing needs to be installed again. Usually the device is off or restarting, or it has no address - a virtual machine that restarted can stay without its DHCP address for the router's lease time (see A VM is unreachable after a restart). Check it on its console (ip -4 addr), then validate again. {{ fresh_tag("device:repair-network") }}

    {% if can('validate') %}
    {% endif %} {% elif R.transient %}

    The last validation ran out of time{% if R.error == 'connection_limit_reached' %} waiting for a free device connection{% endif %} - the device or this Portal was busy (for example during an update). That says nothing about NEXXVU's key: validate again. If it keeps running out of time, Check the connection shows where it stops.

    {% if can('validate') %}
    {% endif %} {% else %}

    Everything is in place; prove it.

    {% if can('validate') %}
    {% endif %} {% if R.error %}

    If it still fails with "{{ R.error }}", the step above it is the one to repeat; Check the connection shows which.

    {% endif %} {% endif %} {% endif %}
  2. {% endfor %}