##// END OF EJS Templates
repo-settings: non-changeable is a bad name. We use permalink notation in the app.
repo-settings: non-changeable is a bad name. We use permalink notation in the app.

File last commit:

r2044:384b6b2d default
r2415:fef13094 default
Show More
user_edit_ssh_keys_generate.mako
48 lines | 1.3 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / users / user_edit_ssh_keys_generate.mako
users: added SSH key management for user admin pages
r1993 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('New SSH Key generated')}</h3>
</div>
<div class="panel-body">
<p>
${_('Below is a 2048 bit generated SSH RSA key. You can use it to access RhodeCode via the SSH wrapper.')}
</p>
<h4>${_('Private key')}</h4>
<pre>
# Save the content as
~/.ssh/id_rsa_rhodecode_access_priv.key
# Change permissions
chmod 0600 ~/.ssh/id_rsa_rhodecode_access_priv.key
</pre>
<div>
<textarea style="height: 300px">${c.private}</textarea>
</div>
<br/>
<h4>${_('Public key')}</h4>
<pre>
# Save the content as
~/.ssh/id_rsa_rhodecode_access_pub.key
# Change permissions
chmod 0600 ~/.ssh/id_rsa_rhodecode_access_pub.key
</pre>
<input type="text" value="${c.public}" class="large text" size="100"/>
<p>
ssh: added ssh key management into my account.
r2044 % if hasattr(c, 'target_form_url'):
<a href="${c.target_form_url}">${_('Add 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))}">${_('Add this generated key')}</a>
% endif
users: added SSH key management for user admin pages
r1993 </p>
</div>
</div>
<script>
$(document).ready(function(){
});
</script>