Since iOpener was not the best name (it was already used), I have renamed the tool for jailbreaking and installing ssh as iPhoneOpener. The code remains basically the same as before, though I have added some new features to it:
- iPhoneOpener now generates the keys (by invoking dropbearkey)
- Automatic download and unpack for firmware image, if necessary (see README for how to avoid the download if you have the restore image already)
- Installs scp, sftp-server, the necessary shells for this to work (bash and csh), and fixes the master.passwd file to use csh (since it is smaller than bash) so scp works.
- Installs some more useful binaries: ls, cat, mkdir, rm, rmdir, curl, vim
I have also made up a PPC and Intel bundle for each one with the required dropbearkey and iPhoneOpener binaries in them too for those who don’t want to compile it all. [If somebody could fix the Makefile so that I can make a universal version of these, please do so and either paste the patch into a comment, or email me on john AT bluedonkey DOT org]
If you want to use iPHUC with your iPhone after this version of jailbreak, then you’ll need to patch that so that it knows to use the com.apple.afc2 service (otherwise you’ll be stuck in jail). You can download the patch from here.
Any problems, leave me a comment. As with all this stuff, if you’re not confident about your ability to recover the phone should something go wrong, don’t run it. It should work out fine, but I can accept no responsibility if it doesn’t.