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