Jailbreak tip: How to use Mobile Terminal to change the default SSH password [Jailbreak]

Just getting into Jailbreak and OpenSSH on iPhone, iPod touch, or iPad and curious how to change the default SSH password? Since Apple sets all iOS devices to "alpine", If you decide to enable SSH it is important for security reasons to change the password to something unique. Otherwise you risk someone else gaining access to your iPhone or iPad. We'll show you how after the break!

Here's what you need to do to change the default SSH password. Note, this method is only for jailbroken iOS devices with OpenSSH installed and MobileTerminal installed.

  • Download MobileTerminal from Cydia. (Make sure its version 426 if using iOS 4.x..)
  • Open MobileTerminal
  • In MobileTerminal, type in: su root
  • It’ll ask you for a password, type in: alpine
  • To make the screen a bit cleaner, type in: cd
  • Now, to change your password, type in: passwd
  • Enter the password you desire (You will not see the characters in the screen as you type them for security reasons)
  • Enter the password you entered once more
  • To change the password for the Mobile user, type in: passwd mobile
  • Enter the password you desire (You will not see the characters in the screen as you type them for security reasons)
  • Enter the password you entered once more

All done! You are now secure and may close MobileTerminal. If you have any questions ask in the comments or for additional help, check out our Jailbreak Help Forum.

Tips of the day will range from beginner-level 101 to advanced-level ninjary. If you already know this tip, keep the link handy as a quick way to help a friend. If you have a tip of your own you’d like to suggest, add them to the comments or send them in to dailytips@tipb.com. (If it’s especially awesome and previously unknown to us, we’ll even give ya a reward…)

2
loading...
0
loading...
0
loading...
0
loading...

← Previously

Verizon Twitter account hints at Verizon iPhone?

Next up →

UPDATED: Twitter for iPhone, iPad updated -- now with push notifications!

Reader comments

Jailbreak tip: How to use Mobile Terminal to change the default SSH password [Jailbreak]

19 Comments

What does the password alpine allow access to? Is it a real security risk? I've never heard of this... So jail breaking is being more secure? Wow...

No one can access SSH on your iPhone unless you Jailbreak and enable it. If you Jailbreak and enable it, you need to change the password so no one else can access it using the default "alpine" password.
Analogy: if you computer isn't online, no one can get to it. If you put it online, you need a router, firewall, etc. to stop bad people from getting to it.

This is not the version on Cydia. Anyone know where to get the version mentioned in this article??

Also, you dont have to use MT. You can just open terminal on your SSH client. I use WinSCP and I can change my PWs with that...

What does "after the break" mean? What break? I keep reading this on many of your articles. I don't understand. Am I supposed to be seeing a commercial or something?

Jailbreak does not automatically enable SSH. If you don't install OpenSSH nobody can SSH into your phone. In fact I can't think of a good reason to install it. Use Mobile Terminal to change passwords and other CL stuff. Use IFunbox to manage files. Changing your password is still a good practice.

Is this post still open? Hope it is :-))
When you jailbreak you dont install ssh BUT it will be installed by other apps or tweaks (i said this cus i have ssh installed but i never did it manually).
Have a question! Whats the diference of those 2 passwords , ssh password & mobile password ?

Hello all, first off, I don't know a darn thing about this ssh/MT stuff... Had my phone jailbroken for ages before I stumbled onto a site suggesting MT pw changes.
Anyways...
1) any way to check current password, or default back incase of pw forgetting?(wrote it down somewhere, didn't know what I was pw securing at the time so kinda threw it aside afterwards).
2) given a user has your pw, what exactly kinda damages could someone cause to your phone through this ssh/MT thingy? Any tips on finding out if any security breaches have been made?
3) MT is mysteriously interesting, I'd really like to get atleast a newbies handle on WTF this thing is/used for/can do... Any tips or reference links to a total newbified set of tutorials?
Thanks a bunch in advance, :D
Daniel