##// END OF EJS Templates
ux: provide clearer instructions for SSH keys.
marcink -
r3249:bcca3275 default
parent child Browse files
Show More
@@ -1,51 +1,52 b''
1 1 <div class="panel panel-default">
2 2 <div class="panel-heading">
3 3 <h3 class="panel-title">${_('New SSH Key generated')}</h3>
4 4 </div>
5 5 <div class="panel-body">
6 6 <p>
7 ${_('Below is a 2048 bit generated SSH RSA key. You can use it to access RhodeCode via the SSH wrapper.')}
7 ${_('Below is a 2048 bit generated SSH RSA key.')}<br/>
8 ${_('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.')}
8 9 </p>
9 10 <h4>${_('Private key')}</h4>
10 11 <pre>
11 12 # Save the below content as
12 13 # Windows: /Users/{username}/.ssh/id_rsa_rhodecode_access_priv.key
13 14 # macOS: /Users/{yourname}/.ssh/id_rsa_rhodecode_access_priv.key
14 15 # Linux: /home/{username}/.ssh/id_rsa_rhodecode_access_priv.key
15 16
16 17 # Change permissions to 0600 to make it secure, and usable.
17 18 e.g chmod 0600 /home/{username}/.ssh/id_rsa_rhodecode_access_priv.key
18 19 </pre>
19 20
20 21 <div>
21 22 <textarea style="height: 300px">${c.private}</textarea>
22 23 </div>
23 24 <br/>
24 25
25 26 <h4>${_('Public key')}</h4>
26 27 <pre>
27 28 # Save the below content as
28 29 # Windows: /Users/{username}/.ssh/id_rsa_rhodecode_access_pub.key
29 30 # macOS: /Users/{yourname}/.ssh/id_rsa_rhodecode_access_pub.key
30 31 # Linux: /home/{username}/.ssh/id_rsa_rhodecode_access_pub.key
31 32 </pre>
32 33
33 34 <input type="text" value="${c.public}" class="large text" size="100"/>
34 35 <p>
35 36 % if hasattr(c, 'target_form_url'):
36 37 <a href="${c.target_form_url}">${_('Use this generated key')}.</a>
37 38 % else:
38 39 <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>
39 40 % endif
40 41 ${_('Confirmation required on the next screen')}.
41 42 </p>
42 43 </div>
43 44 </div>
44 45
45 46 <script>
46 47
47 48 $(document).ready(function(){
48 49
49 50
50 51 });
51 52 </script>
General Comments 0
You need to be logged in to leave comments. Login now