The iPhone has been hacked to allow a SSH server to be ran on it, which makes hacking it much easier. The process to get SSH on the iPhone can be a bit of a pain and there were only automated scripts to do it on Windows, so I went a head and created one for the Mac.
— Dallas Brown » iPhone SSH Install for Mac - Shell Script - The life of a programmer