How to access the command line on your iPhone / iTouch

Posted by Michael Lindsey on: July 3rd, 2008, 4.00 pm

So, since I have a feeling it might be useful sometime in the near future, I’m going to tell you about how to access the command line on your iPhone.  Piece of cake.  So, here goes:

1)  Get thee to a SSH client.  On an OS X computer, just open up Terminal and you’re done.  Windows users should pick up PuTTY.

2) Make sure that OpenSSH is loaded on your mobile device and turned on.

3) Open your client and type:

ssh root@[your ip address]

4) It will ask for the root password, which is “alpine.”

picture 2 How to access the command line on your iPhone / iTouch
And that’s it!  You’re in.  Now, maybe you’re wondering why, even though we’ve never met, I know the password to your iPhone?  That would be because every single iPhone has the SAME ROOT PASSWORD.  And that’s bad, right?  Bet you’d like to change that, huh?

Yeah, let’s take care of that.

  1. With an SSH connection open, type “passwd”.
  2. Type your new password.  The cursor won’t move.
  3. Re-type your new password.  The cursor STILL won’t move.
  4. All done.

picture 3 How to access the command line on your iPhone / iTouch

So there you have it.  Safer iPhone.  Although really, if you don’t notice the person walking up to you with a wifi router, a laptop running SSH, and who asks to see your phone to determine the IP, I don’t think there’s a security measure in the world to protect you…

3 Comments

  1. мм… кто бы мог подумать !

  2. emm… luv it ))

  3. and if you are a programmer, write apps that run on a command line like interface!

    http://www.scribd.com/doc/24665609/web-promo

Leave a Response