How To Change Your iPhone SSH Root Password?

Dutch iPhone jailbreakers were in for an unpleasant surprise with a wallpaper giving them a message saying their iPhone has been hacked. As you can see he directed them to a website and asked for money to find out how to clean their iPhone. The hacker first wanted money but has changed his mind and has posted instructions on how to clean up anyways.

iphoneheckedmessage thumb How To Change Your iPhone SSH Root Password?

As this incident points out, chances are you haven’t protected your iPhone from such a hack either.

SSH (Secure Shell) enables you to get on to your iPhone just like you would on a Linux or Mac OS terminal. You can access files in your iPhone and do all kinds of stuff in it.

Unfortunately, all iPhones ship with the default ‘root’ user account with a password of ‘alpine’.

So, if you had SSH enabled anyone who finds your iPhone in a network can get into your iPhone with the root password. And this is bad. Let’s see how you can protect your iPhone.

  • Go to Cydia
  • Install Mobile Terminal app
  • Open Terminal app
  • Type passwd and hit enter
  • Enter alpine for your old password and enter new password twice
  • That’s it!

 How To Change Your iPhone SSH Root Password? How To Change Your iPhone SSH Root Password?

Just remember that anytime you restore your iPhone to factory settings, the root password is going to be set back to the default password. So, remember to change it again then.


pixel How To Change Your iPhone SSH Root Password?

Send this article to your friends

About karthik

Karthik is your geek next door and loves technology especially his iPhone 4 and iPad 2. Besides posting pics on Instagram as topiphone, he writes on iPhone here and on his tech blog ShanKrila. Twitter: @KIntheHouse Want to find out what else he is upto? About me
  • http://www.topiphoneresource.info/first-iphone-worm/ First iPhone Worm Reported – Affects Jailbroken iPhones Only | Top iPhone Resource

    [...] Mashable is reporting that a worm has broken out in Australia that target iPhone users who have jailbroken their iPhone but failed to change the default iPhone SSH root password. [...]

  • http://thesaj.wordpress.com/2009/11/29/set-me-free-adventures-in-jailbreakin-my-iphone/ The Saj – S.A.S.S.I.E.

    [...] – Enter alpine for your old password – Enter new password & confirm new password DONE… http://www.topiphoneresource.info/change-iphone-ssh-root-password/ 7. Tethering – download an app call MyWi. Install and configure. You will now be able to [...]

  • Bushybrows

    On the Cydia app, it tells you to this:

    1. Install and run Terminal
    2. type su root (this makes you the admin)
    3. Enter alpine for the password.
    4. Type passwd
    5. Type alpine for the current password
    6. Type your new password in and confirm
    7. Type mobile passwd
    8. Change that

    If I confused you just look on Cydia. It tells you exactly what you need to do. Karthik, you should update this post using the Cydia instructions.

  • http://www.davidturnbull.com/minimalists-guide-jailbroken-iphone/ The Minimalist’s Guide to a Jailbroken iPhone

    [...] the default password and there have been numerous exploitations through this oversight. You can change the password though if you want to keep the app on your [...]

  • http://www.topiphoneresource.info/how-to-install-mobileterminal-426-ios4-compatible-to-your-iphone/ How to install MobileTerminal 426 (ios4 compatible) to your iPhone | Top iPhone Resource

    [...] note: We also have a tutorial on how to change the default SSH password on iPhone here. Phorz has done a nice job explaining this for iPhone 4. AKPC_IDS += [...]

  • holyhome

    Thanks.