2 1. suanzi-support: a MQTT client, is a daemon running on remote embedded devices for remote debugging through ssh
3 2. sztool : a local tool, help to get the forwarding port to be used to connect to remote device
7 - run `./add-user.sh` to create a user, used for remote ssh, named debug, and its password is suanzikeji
8 - run `./install.sh` to install the daemon and service file
11 To connect to remote embedded device, your should know the device's MAC address.
13 1. run `./sztool -i 2acdeb93b285`
15 where `2acdeb93b285` is the MAC address of rpdzkj board, which you want to
18 2. If it succeed, it will return the forwarding port on `autossh.suanzi.ai`
22 debian@[~/project/remote-ssh]>> ./sztool -i 2acdeb93b285
23 Connected with result code 0
24 2acdeb93b285-response 32171
26 run ssh debug@autossh.suanzi.ai -p 32171 to connect to 2acdeb93b285 device
29 3. run `ssh debug@autossh.suanzi.ai -p 32171`, then you can ssh to remote
30 device. The password is 'suanzikeji', create in file `add-user.sh`
34 - After the port is generated, the ssh session alive time is 5 min (defined by ALIVE_TIME in suanzi-support).
35 It means after you get the forwarding port, but not run ssh to connect in 5 minutes. this ssh session will terminate.