Hacking the iPhone, because the iPhone is Unix at its core.

How to use SSH to Connect Your iPhone/iPod Touch/iPad to Your Computer (Unix and Unix-like only systems)

Note: this will only work on a Unix or Unix-like system (eg. Mac OS X, any Linux distro, and any BSD; no Windows).

First, install OpenSSH from Cydia.  It will require no further configuration.  Now go into Settings>Wi-Fi and tap the arrow next to your Wi-Fi network; take note of your devices IP Adress.  Now, on your computer, launch Terminal (on Mac: Applications>Utilities>Terminal, and on Linux and BSD: System>Terminal).  In Terminal on your computer, type ssh root@[your device’s IP Adress].  Accept all of the prompts.  When asked for your password, just enter your root password.  Now you should be connected.  It will be as if you are running MobileTerminal but on your computer.  You will be able to run any command you could run on your iPhone.  For example, you could apt-get install some apps, or edit the sudoers file with visudo.

Note: your device must stay awake for the whole time you are SSHing it.

Update: you can use PuTTY to connect with Windows (http://www.chiark.greenend.org.uk/~sgtatham/putty/). Thanks to lol768 for pointing this out.



  lol768 wrote @

Would it be possible to use PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) as a SSH client on windows?

  Caleb wrote @

Yes, PuTTY works.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: