Changes for page Monitor & Remote Access Gateway
Last modified by Kilight Cao on 2025/01/14 10:25
Change comment:
Uploaded new attachment "image-20220531145559-2.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.Xiaoling - Content
-
... ... @@ -2,16 +2,17 @@ 2 2 {{toc/}} 3 3 {{/box}} 4 4 5 -= Monitor Gateway = 5 += 1. Monitor Gateway = 6 6 7 -== Introduction == 7 +== 1.1 Introduction == 8 8 9 9 This introduction shows how to use a script to monitor the gateway. The video link for this instruction is: [[https:~~/~~/youtu.be/8PieIwfSF_g>>url:https://youtu.be/8PieIwfSF_g]] 10 10 11 -[[image: https://wiki.dragino.com/images/thumb/d/dc/Monitor_gateway.png/600px-Monitor_gateway.png||height="393" width="517"]]11 +[[image:image-20220531144606-1.png]] 12 12 13 -== Steps == 14 14 14 +== 1.2 Steps == 15 + 15 15 * Create account in ThingsSpeak and creat channel. 16 16 * Download script from dragino site and move it to properly directory 17 17 ... ... @@ -60,8 +60,10 @@ 60 60 61 61 * Reboot device. 62 62 63 -== Monitor Public IP == 64 64 65 + 66 +== 1.3 Monitor Public IP == 67 + 65 65 The monitor_gateway.sh has been updated to upload the public ip of the device as well. 66 66 67 67 User can find the public ip in field7, the chart is not able to show the complete public ip, user can check that in the export. ... ... @@ -72,9 +72,9 @@ 72 72 73 73 74 74 75 -= Remote Access = 78 += 2. Remote Access = 76 76 77 -== Remote Access via Remote.it. == 80 +== 2.1 Remote Access via Remote.it. == 78 78 79 79 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. 80 80 ... ... @@ -86,7 +86,7 @@ 86 86 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]]. 87 87 88 88 89 -== RSSH Introduction == 92 +== 2.2 RSSH Introduction == 90 90 91 91 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. 92 92 ... ... @@ -108,8 +108,10 @@ 108 108 * LIG16 109 109 * MS14 series if installed with the same firmware. 110 110 111 -=== End User Guide to use SSH access === 112 112 115 + 116 +=== 2.2.1 End User Guide to use SSH access === 117 + 113 113 Go to this the Reverse SSH page as below: 114 114 115 115 [[~[~[image:https://wiki.dragino.com/images/thumb/5/55/RSSH_Menu2.png/500px-RSSH_Menu2.png~|~|height="256" width="500"~]~]>>url:https://wiki.dragino.com/index.php/File:RSSH_Menu2.png]] ... ... @@ -129,12 +129,13 @@ 129 129 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. 130 130 131 131 132 -=== Set Up RSSH Server === 137 +=== **2.2.2 Set Up RSSH Server** === 133 133 134 134 Advance administrator can config a SSH server to provide support their end user themselves., Steps as below 135 135 136 -==== Step 1:Download the SSH service code ==== 137 137 142 +==== **2.2.2.1 Step 1:Download the SSH service code** ==== 143 + 138 138 1).git clone [[https:~~/~~/github.com/dragino/rssh-server.git>>url:https://github.com/dragino/rssh-server.git]] rssh-server 139 139 140 140 [[~[~[image:https://wiki.dragino.com/images/thumb/d/d0/Git_clone.png/500px-Git_clone.png~|~|height="89" width="555"~]~]>>url:https://wiki.dragino.com/index.php/File:Git_clone.png]] ... ... @@ -187,7 +187,7 @@ 187 187 188 188 ===== ===== 189 189 190 -==== Step 2 :Install and run the RSS service ==== 196 +==== **2.2.2.2 Step 2 :Install and run the RSS service** ==== 191 191 192 192 1):install database for /var/rsshdb.sqlite3 and Server development port for 3721(The default is 3721) 193 193 ... ... @@ -217,7 +217,7 @@ 217 217 218 218 ===== ===== 219 219 220 -==== Step 3 :Create a minimal SSH user (reverse SSH proxy for the gateway) ==== 226 +==== **2.2.2.3 Step 3 :Create a minimal SSH user (reverse SSH proxy for the gateway)** ==== 221 221 222 222 (% class="box infomessage" %) 223 223 ((( ... ... @@ -232,7 +232,7 @@ 232 232 **Now user "XXXXX" is the user with limited permissions of the current system** 233 233 234 234 235 -==== Step4:Create an authorization key file ==== 241 +==== **2.2.2.4 Step4:Create an authorization key file** ==== 236 236 237 237 1):sudo mkdir /home/xxxxx/.ssh; sudo touch /home/xxxxx/.ssh/authorizedkey 238 238 ... ... @@ -242,16 +242,17 @@ 242 242 243 243 244 244 245 -=== How does user get the gateway to connect to a user's private server === 251 +=== **2.3 How does user get the gateway to connect to a user's private server** === 246 246 247 -==== Step1: Come back the gateway web UI to get the gateway Public key ==== 248 248 254 +==== **2.3.1 Step1: Come back the gateway web UI to get the gateway Public key** ==== 255 + 249 249 1)in the system ~-~-> Remote Mgmt/span> 250 250 251 251 [[~[~[image:https://wiki.dragino.com/images/thumb/8/8f/Remote_Mgmt.png/500px-Remote_Mgmt.png~|~|height="367" width="500"~]~]>>url:https://wiki.dragino.com/index.php/File:Remote_Mgmt.png]] 252 252 253 253 254 -==== Step2: Authorization server ==== 261 +==== **2.3.2 Step2: Authorization server** ==== 255 255 256 256 Input the Gateway Publickey into user's private server "/home/XXXXX/.ssh/authorized_keys" file. 257 257 ... ... @@ -258,7 +258,7 @@ 258 258 [[~[~[image:https://wiki.dragino.com/images/thumb/4/49/Publickey.png/500px-Publickey.png~|~|height="81" width="500"~]~]>>url:https://wiki.dragino.com/index.php/File:Publickey.png]] 259 259 260 260 261 -===== Step3: Connect private server ===== 268 +===== **2.3.3 Step3: Connect private server** ===== 262 262 263 263 This is same as connect Dragino Support Server but just change the server address to customize server address. 264 264 ... ... @@ -266,7 +266,7 @@ 266 266 267 267 268 268 269 -===== Step 4 :Check Connection ===== 276 +===== **2.3.4 Step 4 :Check Connection** ===== 270 270 271 271 Rssh Host connection Ok 272 272 ... ... @@ -278,7 +278,7 @@ 278 278 [[~[~[image:https://wiki.dragino.com/images/thumb/a/ad/Check_the_gateway.png/500px-Check_the_gateway.png~|~|height="47" width="500"~]~]>>url:https://wiki.dragino.com/index.php/File:Check_the_gateway.png]] 279 279 280 280 281 -==== Step5:Access the gateway from customized server ==== 288 +==== **2.3.5 Step5:Access the gateway from customized server** ==== 282 282 283 283 Check what gateways link to server. 284 284 ... ... @@ -293,5 +293,3 @@ 293 293 $ ./connect-gw.sh <GWID> 294 294 295 295 [[~[~[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"~]~]>>url:https://wiki.dragino.com/index.php/File:Reverse_ssh_access_the_gateway1.png]] 296 - 297 -
- image-20220531144606-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +59.0 KB - Content
- image-20220531145559-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +118.5 KB - Content