Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

SSH remote access #19

Open cdupont opened 4 years ago

cdupont commented 4 years ago

Currently, we are using MQTT for remote access of the gateway UI (remote.waziup.io). However, an SSH access is necessary for more advanced maintenance.

cdupont commented 4 years ago

Several solutions:

  1. A "Web console" could be included in the gateway UI (in maintenance section). This Web console should allow a shell access to the gateway.
  2. Use reverse SSH tunnels with the Cloud platform. The tunnel would be opened by the gateway when pressing a button on the gateway UI. Then the user can connect with something like ssh pi@waziup.io:89898
  3. Implement SSH over MQTT
cdupont commented 4 years ago

Solution 1 seems simple enough IMO. Plus, if you really want a regular SSH access, you can always open an ssh reverse tunnel to your own laptop.

cdupont commented 4 years ago

@j-forster do you know a web console tool that can be embbeded in the UI?

j-forster commented 4 years ago

I don't want to promise too much, but a web-console is not that complicated - we could just connect to the shell via WebSocket and I will implement a receiver at the GW. Besides that, the remote.waziup.io service does not support streaming services (WebSocket and MQTT via WS), but I can put this on the ToDo list.

nduongn commented 3 years ago

Hi, do you have any plan to have this feature (SSH remote access through web console) in the system?

cdupont commented 3 years ago

Hi @andynnd, would you find this feature useful? What is your use case? Which version of WaziGate do you use? Actually, you can already access the gateway via SSH, if you know its IP, by typing: ssh pi@x.x.x.x. An SSH remote access through web console would be useful only if you gateway is in a private network, unaccessible from the outside (cannot access the IP).

nduongn commented 3 years ago

Hi @cdupont, I am using Wazigate V1.1.3. I think this feature is useful for remoting the gateway using 3G/4G. In this case, the Gateway IP is dynamic IP so we dont know it. Thanks.

solomonitotia commented 6 months ago

What the default password. I am able to ssh but default loragateway is not working. image

cdupont commented 6 months ago

Hello Solomon, try ssh pi@192.168.0.117

j-forster commented 6 months ago

The password is right, but the username is "pi" not "admin".

solomonitotia commented 6 months ago

@cdupont and @j-forster thank you. It has worked. image