<
From version < 19.16 >
edited by Xiaoling
on 2022/07/14 14:02
To version < 13.4 >
edited by Xiaoling
on 2022/05/27 11:09
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,10 @@
1 - **Table of Contents:**
1 + **Contents:**
2 2  
3 3  {{toc/}}
4 4  
5 5  
6 += 1. Use Remote.it service =
6 6  
7 -= **1. Use Remote.it service** =
8 -
9 -
10 10  Remote.it for remote access is available in the latest Dragino firmware for gateway. For security concern, the remote.it only available base on end user demand.
11 11  
12 12  (% style="color:red" %)**Important Notice:**
... ... @@ -17,9 +17,8 @@
17 17  For how to use remoteit, please see : [[Remoteit user instruction for Dragino Gateway>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=Dragino-Remoteit_User_Manual.pdf]].
18 18  
19 19  
20 -= **2. RSSH Introduction** =
18 += 2. RSSH Introduction =
21 21  
22 -
23 23  Reverse SSH for remote access is available in the latest Dragino firmware for gateway. For security concern, the RSSH only available base on end user demand.
24 24  
25 25  (% style="color:red" %)**Important Notice:**
... ... @@ -37,15 +37,10 @@
37 37  * LIG16
38 38  * MS14 series if installed with the same firmware.
39 39  
37 +== 2.1 For Firmware Version lower than lgw~-~-build-v5.4.1616478814-20210323-1355 ==
40 40  
39 +=== 2.1.1 End User Guide to use SSH access ===
41 41  
42 -
43 -== **2.1 For Firmware Version lower than lgw~-~-build-v5.4.1616478814-20210323-1355** ==
44 -
45 -
46 -=== **2.1.1 End User Guide to use SSH access** ===
47 -
48 -
49 49  Go to this the Reverse SSH page as below:
50 50  
51 51  [[image:image-20220527102348-1.png]]
... ... @@ -57,11 +57,11 @@
57 57  
58 58  Connection OK.
59 59  
60 -* (% style="color:#4f81bd" %)**Login ID**(%%):  Input (% style="color:#4f81bd" %)**sshuser**
61 -* (% style="color:#4f81bd" %)**Host Address**(%%):  Input** (% style="color:#4f81bd" %)support.dragino.com(%%)**
62 -* (% style="color:#4f81bd" %)**Host Port**(%%):  Please email to support @ dragino.com to get a valid host port.
52 +* (% style="color:#4f81bd" %)**Login ID**(%%): Input (% style="color:#4f81bd" %)**sshuser**
53 +* (% style="color:#4f81bd" %)**Host Address**(%%): Input** (% style="color:#4f81bd" %)support.dragino.com(%%)**
54 +* (% style="color:#4f81bd" %)**Host Port**(%%): Please email to support @ dragino.com to get a valid host port.
63 63  * (% style="color:#4f81bd" %)**Connect at Startupt**(%%): Choose to enable connect once device is powered.
64 -* (% style="color:#4f81bd" %)**Network Keys:  **(%%)Click the Generate keys to generate the keys and download / mail it to Dragino support so Dragino can prepare the remote access to
56 +* (% style="color:#4f81bd" %)**Network Keys:**(%%)Click the Generate keys to generate the keys and download / mail it to Dragino support so Dragino can prepare the remote access to
65 65  
66 66  (((
67 67  After doing above, please download and mail the public keys to Dragino support and wait for our mail for the valid host port. Input the valid host port got from our support and click connect so we can remote access to your gateway.
... ... @@ -68,7 +68,7 @@
68 68  )))
69 69  
70 70  
71 -=== **2.1.2 How to Ser up a Reverse SSH access** ===
63 +=== 2.1.2 How to Ser up a Reverse SSH access ===
72 72  
73 73  Advance administrator can config a SSH server to provide support their end user themselves. Instruction is as below:
74 74  
... ... @@ -88,7 +88,7 @@
88 88  )))
89 89  
90 90  
91 -==== **2.1.2.1 Note for set up RSSH server** ====
83 +==== 2.1.2.1 Note for set up RSSH server ====
92 92  
93 93  If gateway reboot or the connection is incidentely close by end node. The port in SSH server will still be occupy for a long time. Administrator can use below commands to release the port.
94 94  
... ... @@ -103,7 +103,7 @@
103 103  )))
104 104  
105 105  
106 -== **2.2 For Firmware Version higher than lgw~-~-build-v5.4.1618196981-20210412-1111** ==
98 +== 2.2 For Firmware Version higher than lgw~-~-build-v5.4.1618196981-20210412-1111 ==
107 107  
108 108  Below gateway support reverse SSH access:
109 109  
... ... @@ -118,11 +118,11 @@
118 118  )))
119 119  
120 120  
121 -=== **2.2.1 End User Guide to use SSH access** ===
113 +=== 2.2.1 End User Guide to use SSH access ===
122 122  
123 -==== **2.2.1.1 Install the SSH service for server** ====
115 +==== 2.2.1.1 Install the SSH service for server ====
124 124  
125 -===== **2.2.1.1.1 Step 1 : Download the SSH service code** =====
117 +===== 2.2.1.1.1 Step 1:Download the SSH service code =====
126 126  
127 127  1).git clone [[https:~~/~~/github.com/dragino/rssh-server.git>>url:https://github.com/dragino/rssh-server.git]] rssh-server
128 128  
... ... @@ -191,7 +191,7 @@
191 191  )))
192 192  
193 193  
194 -===== **2.2.1.1.2 Step 2 : Install and run the RSS service** =====
186 +===== 2.2.1.1.2 Step 2 :Install and run the RSS service =====
195 195  
196 196  1): intall database for /var/rsshdb.sqlite3 and Server development port for 3721(The default is 3721)
197 197  
... ... @@ -223,7 +223,7 @@
223 223  )))
224 224  
225 225  
226 -===== **2.2.1.1.3 Step 3 : Create a minimal SSH user (reverse SSH proxy for the gateway)** =====
218 +===== 2.2.1.1.3 Step 3 :Create a minimal SSH user (reverse SSH proxy for the gateway) =====
227 227  
228 228  **1): (% style="color:#4f81bd" %)sudo useradd XXXXX(%%)** (custom user name)
229 229  
... ... @@ -240,11 +240,11 @@
240 240  **Now user "XXXXX" is the user with limited permissions of the current system**
241 241  
242 242  
243 -=== **2.2.2 How does user get the gateway to connect to a user's private server** ===
235 +=== 2.2.2 How does user get the gateway to connect to a user's private server ===
244 244  
245 -===== **2.2.2.1 Step 1 : Come bace the gateway web UI for get the gateway Public key** =====
237 +===== 2.2.2.1 Step1: Come bace the gateway web UI for get the gateway Public key =====
246 246  
247 -1) in the system ~-~-> (% style="color:#4f81bd" %)**Remote Mgmt**
239 +1) in the system ~-~-> (% style="color:#4f81bd" %)**Remote Mgmt/span>**
248 248  
249 249  [[image:image-20220527110531-7.png]]
250 250  
... ... @@ -251,7 +251,7 @@
251 251  Remote Mgmt
252 252  
253 253  
254 -===== **2.2.2.2 Step 2 : Authorization server** =====
246 +===== **2.2.2.2 Step2: Authorization server** =====
255 255  
256 256  copy the Gateway Publickey into user's private server "/home/XXXXX/.ssh/authorized_keys" file.
257 257  
... ... @@ -260,7 +260,7 @@
260 260  Publickey
261 261  
262 262  
263 -===== **2.2.2.3 Step 3 : connecte private server** =====
255 +===== **2.2.2.3 Step3: connecte private server** =====
264 264  
265 265  in the gateway web UI
266 266  
... ... @@ -279,11 +279,11 @@
279 279  )))
280 280  
281 281  
282 -===== **2.2.2.4 Step 4 : Cheak is fine** =====
274 +===== **2.2.2.4 Step 4 :Cheak is fine** =====
283 283  
284 284  Rssh Host connection Ok
285 285  
286 -[[image:image-20220527111009-10.png]]
278 +[[image:https://wiki.dragino.com/images/thumb/6/6f/Rssh_Host_connection_Ok.png/500px-Rssh_Host_connection_Ok.png||height="225" width="500"]]
287 287  
288 288  Rssh Host connection Ok
289 289  
... ... @@ -290,12 +290,12 @@
290 290  
291 291  user can use common ps | grep ssh to check it in the gateway.
292 292  
293 -[[image:image-20220527111041-11.png]]
285 +[[image:https://wiki.dragino.com/images/thumb/a/ad/Check_the_gateway.png/500px-Check_the_gateway.png]]
294 294  
295 295  Check the gateway
296 296  
297 297  
298 -===== **2.2.2.5 Step 5 : Create an authorization key file** =====
290 +===== 2.2.2.5 Step5:Create an authorization key file =====
299 299  
300 300  1):sudo mkdir /home/xxxxx/.ssh; sudo touch /home/xxxxx/.ssh/authorizedkey
301 301  
... ... @@ -306,26 +306,22 @@
306 306   check: sudo ls /home/xxxxx/.ssh/authorizedkey
307 307  )))
308 308  
301 +=== 2.2.3 How to Ser up a Reverse SSH access ===
309 309  
310 -=== **2.2.3 How to Ser up a Reverse SSH access** ===
303 +==== 2.2.3.1 Step1: Log into the server system ====
311 311  
312 -==== **2.2.3.1 Step 1 : Log into the server system** ====
305 +[[image:https://wiki.dragino.com/images/thumb/2/26/Loging_server.png/500px-Loging_server.png||height="69" width="500"]]
313 313  
314 -[[image:image-20220527111145-12.png]]
315 -
316 316  Loging server
317 317  
318 318  
319 -==== **2.2.3.2 Step 2 : access the gateway** ====
310 +==== 2.2.3.2 Step2:access the gateway ====
320 320  
321 -(% class="box" %)
322 -(((
323 323  $ cd rssh-server/
324 -)))
325 325  
326 326  Check the gateway linking to the server $ ./connect-gw.sh -l
327 327  
328 -[[image:image-20220527111219-13.png]]
316 +[[image:https://wiki.dragino.com/images/thumb/e/ee/Check_gateway_link_server.png/500px-Check_gateway_link_server.png||height="157" width="500"]]
329 329  
330 330  Check the gateway linking to the server
331 331  
... ... @@ -332,6 +332,6 @@
332 332  
333 333  access the gateway $ ./connect-gw.sh <GWID>
334 334  
335 -[[image:image-20220527111300-14.png]]
323 +[[image:https://wiki.dragino.com/images/thumb/b/b7/Reverse_ssh_access_the_gateway1.png/500px-Reverse_ssh_access_the_gateway1.png||height="230" width="500"]]
336 336  
337 337  reverse ssh access the gateway
image-20220527111009-10.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -22.5 KB
Content
image-20220527111041-11.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -13.4 KB
Content
image-20220527111145-12.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -6.3 KB
Content
image-20220527111219-13.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -9.1 KB
Content
image-20220527111300-14.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -28.6 KB
Content
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0