##// END OF EJS Templates
ssh: update docs based on feedback.
marcink -
r2478:0874da14 default
parent child Browse files
Show More
@@ -64,7 +64,7 b' 2. Enable the SSH module on instance.'
64 ssh.wrapper_cmd_allow_shell = false
64 ssh.wrapper_cmd_allow_shell = false
65
65
66 ## Enables logging, and detailed output send back to the client during SSH
66 ## Enables logging, and detailed output send back to the client during SSH
67 ## operations. Usefull for debugging, shouldn't be used in production.
67 ## operations. Useful for debugging, shouldn't be used in production.
68 ssh.enable_debug_logging = false
68 ssh.enable_debug_logging = false
69
69
70 ## Paths to binary executable, by default they are the names, but we can
70 ## Paths to binary executable, by default they are the names, but we can
@@ -111,20 +111,22 b' 4. Add the public key to your user accou'
111 Then add, remove your SSH key and try connecting again.
111 Then add, remove your SSH key and try connecting again.
112 Debug logging will be printed to help find the problems on the server side.
112 Debug logging will be printed to help find the problems on the server side.
113
113
114 Test connection using the ssh command from the local machine
114 Test connection using the ssh command from the local machine. Make sure
115 to use the use who is running the |RCE| server, and not your username from
116 the web interface.
115
117
116
118
117 For SVN:
119 For SVN:
118
120
119 .. code-block:: bash
121 .. code-block:: bash
120
122
121 SVN_SSH="ssh -i ~/.ssh/id_rsa_test_ssh" svn checkout svn+ssh://rhodecode@rc-server/repo_name
123 SVN_SSH="ssh -i ~/.ssh/id_rsa_test_ssh_private.key" svn checkout svn+ssh://rhodecode@rc-server/repo_name
122
124
123 For GIT:
125 For GIT:
124
126
125 .. code-block:: bash
127 .. code-block:: bash
126
128
127 GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_test_ssh' git clone ssh://rhodecode@rc-server/repo_name
129 GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_test_ssh_private.key' git clone ssh://rhodecode@rc-server/repo_name
128
130
129 For Mercurial:
131 For Mercurial:
130
132
@@ -133,6 +135,6 b' 4. Add the public key to your user accou'
133 Add to hgrc:
135 Add to hgrc:
134
136
135 [ui]
137 [ui]
136 ssh = ssh -C -i ~/.ssh/id_rsa_test_ssh
138 ssh = ssh -C -i ~/.ssh/id_rsa_test_ssh_private.key
137
139
138 hg clone ssh://rhodecode@rc-server/repo_name
140 hg clone ssh://rhodecode@rc-server/repo_name
@@ -9,9 +9,12 b''
9 <h4>${_('Private key')}</h4>
9 <h4>${_('Private key')}</h4>
10 <pre>
10 <pre>
11 # Save the content as
11 # Save the content as
12 ~/.ssh/id_rsa_rhodecode_access_priv.key
12 # Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_priv.key
13 # Change permissions
13 # macOS: /Users/<yourname>/.ssh/id_rsa_rhodecode_access_priv.key
14 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_priv.key
14 # Linux: /home/<username>/.ssh/id_rsa_rhodecode_access_priv.key
15
16 # Change permissions to 0600 to make it secure, and usable.
17 e.g chmod 0600 /home/<username>/.ssh/id_rsa_rhodecode_access_priv.key
15 </pre>
18 </pre>
16
19
17 <div>
20 <div>
@@ -19,13 +22,12 b' chmod 0600 ~/.ssh/id_rsa_rhodecode_acces'
19 </div>
22 </div>
20 <br/>
23 <br/>
21
24
22
23 <h4>${_('Public key')}</h4>
25 <h4>${_('Public key')}</h4>
24 <pre>
26 <pre>
25 # Save the content as
27 # Save the content as
26 ~/.ssh/id_rsa_rhodecode_access_pub.key
28 # Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_pub.key
27 # Change permissions
29 # macOS: /Users/<yourname>/.ssh/id_rsa_rhodecode_access_pub.key
28 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_pub.key
30 # Linux: /home/<username>/.ssh/id_rsa_rhodecode_access_pub.key
29 </pre>
31 </pre>
30
32
31 <input type="text" value="${c.public}" class="large text" size="100"/>
33 <input type="text" value="${c.public}" class="large text" size="100"/>
General Comments 0
You need to be logged in to leave comments. Login now