23 lines
716 B
HTML
23 lines
716 B
HTML
{% extends "components/base.html" %}
|
|
|
|
{% block main_area %}
|
|
<h1>Upload SSH Private Key</h1>
|
|
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<button type="submit" class="btn btn-primary">Upload</button>
|
|
</form>
|
|
|
|
<!-- 복호화된 SSH Key 표시 -->
|
|
{% if decrypted_key %}
|
|
<hr>
|
|
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
|
<h3>Stored SSH Private Key (Decrypted)</h3>
|
|
<pre class="bg-light p-3">{{ decrypted_key }}</pre>
|
|
{% else %}
|
|
<!-- <p class="text-muted mt-4">No SSH Private Key stored.</p> -->
|
|
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
|
{% endif %}
|
|
|
|
{% endblock %} |