Thursday, February 5, 2009

How to SSH to iPhone

Step 1. Jail break your iphone. See here for more.

Step 2. Install OpenSSH from Cydia. My OpenSSH version is (5.1p1-6 or 4.7p1-5, I don't know which is the right version -_-)

Step 3. Connect your iphone to a WiFi (This requires you have internet access through this WiFi though). Then goto Settings->WiFi->Click the arrow of the corresponding wifi, a new page will show up->DHCP->IP Address, record this IP address on paper.

Step 4. Get a SSH client. On PCs, you can use WinSCP. On linux, you can simply type "ssh root@iphone's ip". On Mac, you can use Cyberduck, or in terminal, use the same command as linux. (Remember iphone's password is? If you forgot, see here)

Step 5. Here we are.

Remember you are now logining in as root. You can download anything you want, you can create anything, you can delete anything, and you can kill any process (not critical system processes of course) potentially.

If you have a jailbroken iPhone and installed OpenSSH, when you connect to WiFi.
You also need to care for the attackers.
Image how horrible it is if someone can SSH to your iphone as root!

No comments: