document setup (beginning only)
[sxmo-sms-ssh] / README.md
1 # sxmo - send sms to activate ssh remote port forwarding
2
3 First, let me start with a use case: I want to send sms from my phone to sim card
4 at remote location which will then bring up mobile network data and establish
5 remote ssh port forwarding to external host using new mobile connection so I can
6 log in back into network which lost it's connectivity with internet.
7
8 I spent way too much time trying to solve this, mostly because I didn't try
9 [sxmo](https://sxmo.org) which is exactly what I needed for this job.
10
11 ## device
12
13 For device, I was fortunate than I had pinephone, one of 
14 devices supported by postmarketos](https://wiki.postmarketos.org/wiki/Devices)
15
16 # postmarketos usb network setup
17
18 After plugging it in with usb cable, I configure usb network (which
19 changes device on every reboot of pinephone) with [pm-net.sh script](pm-net.sh)
20
21 Default password is **147147** which you will also need if you want to unlock device.
22
23 # find out sim card number
24
25 If you don't know phone number of this card, now you can
26 send test sms message to your number:
27 ```
28 /usr/bin/sxmo_modemsendsms.sh +385912345678 "test sms"
29 ```
30