{% extends "layout_settings.html" %} {% block title %}SSH keys · Openhub{% endblock %} {% block settings %}

SSH keys

These keys can push to and pull from every repository you have access to. Remove any key you no longer recognise.

{% if keys.is_empty() %}
{{ crate::web::fmt::icon("key-round")|safe }}

No SSH keys yet

Add a key below to start pushing over SSH.

{% else %}
{% for k in keys %}
{{ crate::web::fmt::icon("key-round")|safe }}SSH
{{ k.title }} {{ k.fingerprint }}
{{ k.key_type }} · Added {{ crate::web::fmt::date(k.created_at) }} · {% if let Some(used) = k.last_used_at %}Last used {% else %}Never used{% endif %}
{% endfor %}
{% endif %}

Add a new SSH key

{% if let Some(e) = error %}
{{ crate::web::fmt::icon("circle-alert")|safe }}{{ e }}
{% endif %}

Getting started

Generate a key if you don't have one, then paste the contents of the .pub file above:

ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pub

Once added, check that the server accepts it:

{% endblock %}