{% extends "horizon/common/_modal_form.html" %} {% load i18n %} {% load url from future %} {% block form_id %}import_keypair_form{% endblock %} {% block form_action %}{% url 'horizon:project:access_and_security:keypairs:import' %}{% endblock %} {% block modal-header %}{% trans "Import Key Pair" %}{% endblock %} {% block modal-body %}
{% include "horizon/common/_form_fields.html" %}

{% trans "Description" %}:

{% trans "Key Pairs are how you login to your instance after it is launched." %}

{% trans "Choose a key pair name you will recognise and paste your SSH public key into the space provided." %}

{% trans "SSH key pairs can be generated with the ssh-keygen command:" %}

ssh-keygen -t rsa -f cloud.key

{% trans "This generates a pair of keys: a key you keep private (cloud.key) and a public key (cloud.key.pub). Paste the contents of the public key file here." %}

{% trans "After launching an instance, you login using the private key (the username might be different depending on the image you launched):" %}

ssh -i cloud.key <username>@<instance_ip>

{% endblock %} {% block modal-footer %} {% trans "Cancel" %} {% endblock %}