{% extends "base.html" %} {% set editing = server_id is not none %} {% block title %}{{ "Edit Server" if editing else "Add Server" }}{% endblock %} {% block heading %}{{ "Edit Server" if editing else "Add Server" }}{% endblock %} {% block content %}
{% if errors %} {% endif %}
Must be unique. Used to match servers in CVE reports.
{% if errors.name %}
{{ errors.name }}
{% endif %}
{% if errors.ip_address %}
{{ errors.ip_address }}
{% endif %}
{% set method = form.auth_method or "pem" %}
{% if errors.auth_method %}
{{ errors.auth_method }}
{% endif %}
Path to the private key on this machine. Only the path is stored.
{% if errors.pem_path %}
{{ errors.pem_path }}
{% endif %}
{# Never pre-filled: the stored password is never sent back to the browser. #} {% if errors.ssh_password %}
{{ errors.ssh_password }}
{% endif %} {% if stored_password_error %}
{{ stored_password_error }}
{% endif %}
{% if has_stored_password %}Password stored Leave empty to keep the stored password. {% endif %}Stored encrypted per server; never shown, logged or put on a command line. Requires sshpass on this machine. sudo on the server must still be passwordless.
Login user for every SSH/SCP connection to this server (default ubuntu; e.g. ec2-user on Amazon Linux).
{% if errors.ssh_user %}
{{ errors.ssh_user }}
{% endif %}
Tags (optional)
Free-form key/value labels, e.g. display_name = Billing API. Keys must be unique per server. Empty rows are ignored.
{% for tag in form.tags or [{"key": "", "value": ""}] %}
{% endfor %}
{% if errors.tags %}
{{ errors.tags }}
{% endif %}
{% if ssh_result %}{% include "_ssh_result.html" %}{% endif %}
Cancel
{% endblock %}