{% extends 'base.html' %} {% block title %}SSH Public Keys{% endblock %} {% block content %} <div class="row third-margin"> <h1>SSH PUBLIC KEYS</h1> </div> <div class="row third-margin"><div> {% if has_ssh_public_keys %} <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 has_ssh_public_keys %} <hr/> {% endif %} <div class="third-margin"> <h1>UPLOAD A NEW SSH PUBLIC KEY</h1> </div> <form method="post"> <input type="hidden" name="method" value="POST"></input> <div class="row justify-start"> <label class="align" for="content">File Contents</label> <textarea class="expand" id="content" name="content"></textarea> </div> <div class="row justify-start"> <label class="align" for="name">Key Name</label> <input type="text" id="name" name="name"></input> (defaults to key comment) </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> </div></div> {% endblock %} {% block pagesource %}/templates/ssh-public-keys.html{% endblock %}