forked from 3wordchant/capsul-flask
56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
{% extends 'console-base.html' %}
|
|
|
|
{% block title %}SSH Public Keys{% endblock %}
|
|
{% block consoletitle %}Console - SSH Public Keys{% endblock %}
|
|
|
|
{% block consolecontent %}
|
|
|
|
|
|
{% if ssh_public_keys[0] is defined %} <hr/> {% endif %}
|
|
|
|
{% 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>
|
|
<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 %}
|
|
|
|
{% if ssh_public_keys[0] is defined %} <hr/> {% endif %}
|
|
|
|
<div class="third-margin">
|
|
<h1>UPLOAD A NEW SSH KEY</h1>
|
|
</div>
|
|
<form method="post">
|
|
<input type="hidden" name="method" value="POST"></input>
|
|
<div class="row justify-start">
|
|
<label class="align" for="name">Name</label>
|
|
<input type="text" id="name" name="name"></input>
|
|
</div>
|
|
<div class="row justify-start">
|
|
<label class="align" for="content">Content</label>
|
|
<textarea class="expand" id="content" name="content"></textarea>
|
|
</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> )
|
|
</p><p>
|
|
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>
|
|
{% endblock %}
|
|
|
|
{% block pagesource %}/templates/ssh-public-keys.html{% endblock %}
|