user_edit_ssh_keys_generate.mako
58 lines
| 2.0 KiB
| application/x-mako
|
MakoHtmlLexer
r1993 | <div class="panel panel-default"> | |||
<div class="panel-heading"> | ||||
r3478 | <h3 class="panel-title">${_('New SSH Key generation')}</h3> | |||
r1993 | </div> | |||
<div class="panel-body"> | ||||
r3478 | %if c.ssh_enabled and c.ssh_key_generator_enabled: | |||
<p> | ||||
${_('Below is a 2048 bit generated SSH RSA key.')}<br/> | ||||
${_('If You wish to use it to access RhodeCode via the SSH please save the private key and click `Use this generated key` at the bottom.')} | ||||
</p> | ||||
<h4>${_('Private key')}</h4> | ||||
<pre> | ||||
r2748 | # Save the below content as | |||
# Windows: /Users/{username}/.ssh/id_rsa_rhodecode_access_priv.key | ||||
# macOS: /Users/{yourname}/.ssh/id_rsa_rhodecode_access_priv.key | ||||
# Linux: /home/{username}/.ssh/id_rsa_rhodecode_access_priv.key | ||||
r2478 | ||||
# Change permissions to 0600 to make it secure, and usable. | ||||
r2748 | e.g chmod 0600 /home/{username}/.ssh/id_rsa_rhodecode_access_priv.key | |||
r3478 | </pre> | |||
r1993 | ||||
r3478 | <div> | |||
<textarea style="height: 300px">${c.private}</textarea> | ||||
</div> | ||||
<br/> | ||||
r1993 | ||||
r3478 | <h4>${_('Public key')}</h4> | |||
<pre> | ||||
r2748 | # Save the below content as | |||
# Windows: /Users/{username}/.ssh/id_rsa_rhodecode_access_pub.key | ||||
# macOS: /Users/{yourname}/.ssh/id_rsa_rhodecode_access_pub.key | ||||
# Linux: /home/{username}/.ssh/id_rsa_rhodecode_access_pub.key | ||||
r3478 | </pre> | |||
r1993 | ||||
r3478 | <input type="text" value="${c.public}" class="large text" size="100"/> | |||
<p> | ||||
% if hasattr(c, 'target_form_url'): | ||||
<a href="${c.target_form_url}">${_('Use this generated key')}.</a> | ||||
% else: | ||||
<a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id, _query=dict(default_key=c.public))}">${_('Use this generated key')}.</a> | ||||
% endif | ||||
${_('Confirmation required on the next screen')}. | ||||
</p> | ||||
% else: | ||||
<h2> | ||||
${_('SSH key generator has been disabled.')} | ||||
</h2> | ||||
% endif | ||||
r1993 | </div> | |||
</div> | ||||
<script> | ||||
$(document).ready(function(){ | ||||
}); | ||||
</script> | ||||