2020-05-11 20:13:20 +00:00
|
|
|
|
{% extends 'base.html' %}
|
2020-05-11 16:57:39 +00:00
|
|
|
|
|
|
|
|
|
{% block title %}SSH Public Keys{% endblock %}
|
|
|
|
|
|
2020-05-11 20:13:20 +00:00
|
|
|
|
{% block content %}
|
2020-05-13 05:28:53 +00:00
|
|
|
|
<div class="row third-margin">
|
2020-05-11 20:13:20 +00:00
|
|
|
|
<h1>SSH PUBLIC KEYS</h1>
|
|
|
|
|
</div>
|
2020-05-13 05:28:53 +00:00
|
|
|
|
<div class="row third-margin"><div>
|
2020-05-11 20:13:20 +00:00
|
|
|
|
{% if has_ssh_public_keys %} <hr/> {% endif %}
|
2020-05-11 16:57:39 +00:00
|
|
|
|
|
|
|
|
|
{% for ssh_public_key in ssh_public_keys %}
|
|
|
|
|
<form method="post">
|
|
|
|
|
<input type="hidden" name="method" value="DELETE"></input>
|
|
|
|
|
<input type="hidden" name="name" value="{{ ssh_public_key['name'] }}"></input>
|
2020-05-22 21:04:47 +00:00
|
|
|
|
<input type="hidden" name="csrf-token" value="{{ csrf_token }}"/>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<span class="code">{{ ssh_public_key['name'] }}</span>
|
|
|
|
|
<span class="dim">{{ ssh_public_key['content'] }}</span>
|
|
|
|
|
<input type="submit" value="Delete">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
2020-05-11 20:13:20 +00:00
|
|
|
|
{% if has_ssh_public_keys %} <hr/> {% endif %}
|
2020-05-11 16:57:39 +00:00
|
|
|
|
|
|
|
|
|
<div class="third-margin">
|
2020-05-12 05:58:17 +00:00
|
|
|
|
<h1>UPLOAD A NEW SSH PUBLIC KEY</h1>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
</div>
|
|
|
|
|
<form method="post">
|
|
|
|
|
<input type="hidden" name="method" value="POST"></input>
|
2020-05-22 21:04:47 +00:00
|
|
|
|
<input type="hidden" name="csrf-token" value="{{ csrf_token }}"/>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
<div class="row justify-start">
|
2020-05-12 05:58:17 +00:00
|
|
|
|
<label class="align" for="content">File Contents</label>
|
|
|
|
|
<textarea class="expand" id="content" name="content"></textarea>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row justify-start">
|
2020-05-12 05:58:17 +00:00
|
|
|
|
<label class="align" for="name">Key Name</label>
|
|
|
|
|
<input type="text" id="name" name="name"></input> (defaults to key comment)
|
2020-05-11 16:57:39 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="smalltext">
|
|
|
|
|
<p>Paste the contents of your SSH public key file here.
|
|
|
|
|
( Something like <span class='code'>~/.ssh/id_rsa.pub</span> )
|
2022-02-11 23:15:56 +00:00
|
|
|
|
</p>
|
|
|
|
|
<blockquote>
|
|
|
|
|
<b>ℹ️ INFO:</b> The tilde <span class="code">~</span> here represents the user's home directory,
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Linux: <span class="code">/home/username</span></li>
|
|
|
|
|
<li>Windows: <span class="code">C:\Users\username</span></li>
|
|
|
|
|
<li>MacOS: <span class="code">/Users/username</span></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</blockquote>
|
|
|
|
|
<p>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
The contents of this file should look similar to
|
|
|
|
|
<span class='code'>ssh-rsa AAAAC3NzaC1l...Yqv== me@my-computer</span>
|
|
|
|
|
</p><p>
|
|
|
|
|
If you wish, you can <a href="https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key">
|
|
|
|
|
generate a new SSH key pair using the ssh-keygen utility</a>.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row justify-end">
|
|
|
|
|
<input type="submit" value="Upload">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2020-05-13 05:28:53 +00:00
|
|
|
|
</div></div>
|
2020-05-11 16:57:39 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block pagesource %}/templates/ssh-public-keys.html{% endblock %}
|