Note: This process was done on an iPhone 3G, so YMMV, but I'd imagine the process is basically the same for any iPhone or iPod running 2.2.1.
I'll start off by saying that this process is painful, so if you're lazy or you don't really have the technical knowhow to fiddle with a terminal, then you're out of luck.
One problem I saw with some of the older comments talking about this is that it mentioned "prerequisites," but it never mentioned which prerequisites. That I'll mention here.
What you need:
- An old Mac, preferably running OS X 10.4.11-10.5.8.
- A modern Mac or Linux machine.
- QuickPwn 2.2.5 (available on the LegacyJailbreak archives).
- The iPhone OS 2.2.1 IPSW for your specific model.
- cydia_1.1.18_iphoneos-arm.deb.
- apr-lib_1.3.3-2_iphoneos-arm.deb.
- cydia-lproj_1.1.12_iphoneos-arm.deb.
- iTunes 7.7.
Assuming you've already installed iPhone OS 2.2.1 on your device and it's on the pre-activation screen, this is what you do.
- Connect your iPhone to your Mac and run QuickPwn. Just click "no" when it asks to check for updates, and it should immediately detect your iPhone and find the 2.2.1 firmware. Double click on where it shows your firmware, and follow the instructions to turn your iPhone off, then restart it in DFU mode. After that, wait a bit for to jailbreak and hacktivate.
- At this stage, you should have now randomly been dropped onto the home screen. Connect to your wifi. Tap on Cydia, then go to Manage > Sources, and add the Cydate repo (cydia.invoxiplaygames.uk/cydate). Install OpenSSH and its prerequisites.
- Likely, you'll see that it's begging you to upgrade multiple packages now. Do not try to brute force them all. Manually upgrade every package except for Cydia Installer and the APT libraries.
- Go into your settings, to Wi-Fi, then tap on the blue arrow next to your network and record the IP on the "IP Address" thing.
- At your main computer, open two terminal windows. Ensure your iPhone is unlocked. For the first one, ssh into your phone by running
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-rsa -o Ciphers=+aes128-cbc root@iPhoneIP. For the second one, scp the three debs you downloaded to /var/root by running scp -o HostKeyAlgorithms=+ssh-rsa (the three paths to the debs listed above) root@iPhoneIP:/var/root/. Both will require you to enter the root password, which is alpine. - Assuming you were able to copy the files successfully, go back to the window your ssh session is on, and initially try to run
dpkg -i (path to Cydia 1.1.18 deb). I believe it'll tell you that there are missing packages needed for the install. - Run
apt-get -f install. It should install some of the prerequisites and leave others behind due to conflicts. You can run it a couple times to be safe, but after that, it should remove the cydia-lproj package and let you update the rest. - Finally, run
dpkg -i (path to the main Cydia deb, apr-lib, and cydia-lproj debs). This time, it should install cleanly. - Run
killall SpringBoard and unlock your iPhone. Open Cydia. When it asks you to upgrade the packages remaining, do not do that. Cydia 1.1.18 is the last supported version of Cydia for iPhone OS 2, and upgrading it will break its functionality. - Disconnect from ssh unless you plan to immediately install multiple tweaks, in which case I'll detail what you need to do below.
Assuming all went well, Cydia should open, and it'll be unhappy that it can't connect securely over https. This is normal and unfixable for now, I believe, since there's no Cydia HTTPatch tweak for iPhone OS 2.
Quite a few tweaks will just refuse to install, so there's that. Whenever you refresh the sources or successfully install a tweak, just tap on the Close button in the top right. If you've installed a tweak, ssh back into the device and run killall SpringBoard again.
I suck at explaining things greatly, and since I was pretty dumb and tried to install Cydia 1.1.8 rather than 1.1.18, things might be a lot different, since I tried brute forcing everything at first. In any case though, I do hope this works for any other people who have been looking to do this.