<%namespace name="base" file="/base/base.mako"/>

${base.gravatar_with_user(c.user.username, 16, tooltip=False, _class='pull-left')}  - ${_('New SSH Key generation')}

%if c.ssh_enabled and c.ssh_key_generator_enabled:

${_('Below is a 2048 bit generated SSH RSA key.')}
${_('If you use older systems please try to generate a')} ${_('legacy format')} ssh key.
${_('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.')}

${_('Private key')}

# 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

# Change permissions to 0600 to make it secure, and usable.
e.g chmod 0600 /home/{username}/.ssh/id_rsa_rhodecode_access_priv.key
            

${_('Public key')}

# 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
            

% if hasattr(c, 'target_form_url'): ${_('Use this generated key')}. % else: ${_('Use this generated key')}. % endif ${_('Confirmation required on the next screen')}.

% else:

${_('SSH key generator has been disabled.')}

% endif