##// 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 64 ssh.wrapper_cmd_allow_shell = false
65 65
66 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 68 ssh.enable_debug_logging = false
69 69
70 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 111 Then add, remove your SSH key and try connecting again.
112 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 119 For SVN:
118 120
119 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 125 For GIT:
124 126
125 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 131 For Mercurial:
130 132
@@ -133,6 +135,6 b' 4. Add the public key to your user accou'
133 135 Add to hgrc:
134 136
135 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 140 hg clone ssh://rhodecode@rc-server/repo_name
@@ -9,9 +9,12 b''
9 9 <h4>${_('Private key')}</h4>
10 10 <pre>
11 11 # Save the content as
12 ~/.ssh/id_rsa_rhodecode_access_priv.key
13 # Change permissions
14 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_priv.key
12 # Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_priv.key
13 # macOS: /Users/<yourname>/.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 18 </pre>
16 19
17 20 <div>
@@ -19,13 +22,12 b' chmod 0600 ~/.ssh/id_rsa_rhodecode_acces'
19 22 </div>
20 23 <br/>
21 24
22
23 25 <h4>${_('Public key')}</h4>
24 26 <pre>
25 27 # Save the content as
26 ~/.ssh/id_rsa_rhodecode_access_pub.key
27 # Change permissions
28 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_pub.key
28 # Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_pub.key
29 # macOS: /Users/<yourname>/.ssh/id_rsa_rhodecode_access_pub.key
30 # Linux: /home/<username>/.ssh/id_rsa_rhodecode_access_pub.key
29 31 </pre>
30 32
31 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