When you jailbreak your iPhone these days, SSH (secure shell) for remote connections is automatically installed.Â It’s really handy to be able to connect, but there’s one issue:
The root password for every single iPhone (1.1.4, anyway) is “alpine”.
This means that by default, when SSH is enabled, anyone can connect to your device and wreak havoc.Â It’s wise to do something about this, so one of the first commands savvy users will type in after connecting is…
# passwd root
…to set their own password.Â This is actually a bad idea, because the
passwd tool doesn’t work correctly on the iPhone (it’s not a normal function of the device) and you’ll wind up stuck in an endless crash loop.
But fear not!Â There is a way to change your password (and, if you happen to have gotten stuck in that loop, fix the issue).Â It’s all detailed on this page at matsimitsu.nl, for which I was immensely grateful.
If your 1.1.3 or 1.1.4 iPhone is jailbroken, go do it, and be successful with it.