Provides remote access to SMS codes (2FA, banking, etc) sent to your iPhone, via a Mac with Messages in the Cloud enabled.
If you:
- need other people (significant other, virtual assistant, etc) to see 2-factor/banking/etc codes sent over SMS to your iPhone,
- and you have an always-on Mac (like an iMac or Mac Mini),
- and you have Messages in the Cloud enabled,
- and you have a static IP address at home (or some way to connect from outside),
run this daemon, and it'll display a web page with the last 10 SMS messages containing authorization codes sent to your phone.
Prerequisites:
- Make sure you have Messages in the Cloud enabled, and see SMS messages in the Messages app on your Mac.
The easy way:
- TODO: make binary releases and/or Homebrew recipe!
- or maybe even build a Mac app...
The hard way:
-
Install Go via Homebrew:
brew install go
(make sure you have Homebrew installed first, of course) -
Install this app via Go:
go get -u github.com/andreyvit/smscoderemoteaccess
-
Prepare a JSON config file, see
config-example.json
for example. -
Make sure Terminal can access your messages database. Open Terminal and run
head -1 ~/Library/Messages/chat.db
; do whatever dance necessary to get that to run (might include adding Terminal.app/iTerm.app to Full Disk Access permissions preference pane), -
Run
~/go/bin/smscoderemoteaccess -f path/to/your/config.json
. -
Set up your router to forward whatever port you have configured in config JSON to your Mac.
To use:
-
Open
http://host:port/
in your browser, wherehost
is your external IP address (or domain name) andport
is the port you have configured on your router. -
Authenticate with the username and password from the config file.