4

I have a RaspberryPi which is configured to automatically connect to my iPhone's wifi hotspot. I need to take the RaspberryPi to various locations for testing, and I often need to leave it at a location for extended periods of time (without my iPhone hotspot there). The RaspberryPi needs an internet connection in order to complete the testing properly.

I am trying find a solution which would allow me to SSH (or connect some other way) into the RaspberryPi while it is connected to my iPhone's wifi hotspot. This would allow me to add a new wifi network/password when I move to a new location (I usually can't get the wifi network/password in advance). In other words, I would move into a new location, the RaspberryPi would be connected to my hotspot and would begin testing, and once I obtain the wireless network/password for that location, I want to connect to the RaspberryPi to add that information so it can connect to the location's wifi network instead of my hotspot.

I don't have a portable monitor for the RaspberryPi so I can't just hook it up to a screen and make the changes that way.

Does anyone have any suggestions? Thanks in advance.

Jackspace
  • 143
  • 8
Anon John
  • 53
  • 1
  • 4

1 Answers1

2

On the phone running this hotspot, I am assuming you can install apps that permit you to SSH into the Pi, headless? I'm doing this regularly, my choice app is JuiceSSH.

Alternately, a laptop connected to the same phone hotspot running an SSH client such as Putty can connect to the Pi across the same AP, also headlessly. You can update your WPA_supplicant file and reboot the Pi, making sure to bring down your hotspot before it fires up again and joins the new AP. I'm also doing this regularly.

Given the time (4 months) that's passed, you've likely figured this out already...

  • My question here would be: how to access the Pi from the iPhone? Using PiHelper app and trying to connect to the ip I get for wlan0 using ifconfig on the pi doesn't work. The ip is something like 169.254.212.217. Thus I wonder how you did it. – Karsten S. Sep 01 '19 at 17:15