After jailbreaking my iPhone 4 today and immediately installing my usual recommended items from Cydia: SBSettings, WinterBoard, OpenSSH, MobileTerminal, FiveIconDock… Then I immediately went to change my SSH passwords with Mobile Terminal. I was surprised to find that MobileTerminal gave me a flash of terminal, and immediately sent me back to the springboard. So after an hour or so of searching and some messing around with differing opinions on how to change your password, I finally got MobileTerminal to work. At which point I decided to share how I finally accomplished this, in case anyone else is struggling.

The first thing you want to do after jailbreaking is go to Cydia on your phone and click ‘Manage’ on the bottom panel. Then right under your reception bars is a ‘settings’ button, click that. Click ‘Developer’. Now click on ‘Search’ on the bottom panel. Search for ‘Core Utilities’. Make sure you have both core utilities installed: “Core Utilities” and “Core Utilities (/bin)”.
On your computer go here and get the .deb file for MobileTerminal.
Using your SSH program, (I use WinSCP) SSH to your device. Go to your “var/root/Media” folder. Inside the Media folder create a “Cydia” folder (folders are case sensitive). Now inside your Cydia folder make a “AutoInstall” folder. Now you should have “var/root/Media/Cydia/AutoInstall”. Inside the AutoInstall folder, transfer the .deb file you downloaded in the last step.
Reboot your device. Reboot your device, AGAIN.
Now return to Cydia, and go through the first step: Manage; Settings; This time change back to user so you don’t forget to later. Exit Cydia.
Open MobileTerminal, which should now be on your springboard.
Screen says: Your input
(your iphone name):~ mobile$ passwd
Changing password for mobile.
Old password: alpine
New password: (your password)
Retype new password: (yourpassword)
(your iphone name):~ mobile$ login root
password: alpine
(your iphone name):~ root# passwd
Changing password for root.
Old password: alpine
New password: (your password)
Retype new password: (yourpassword)
Congratulations, your passwords for both users mobile and root have been changed! Make a note of your passwords or you will not be able to SSH onto your device.
Editors 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.
*Edit by Phorz on 08.04.2010 Update .deb link in article. Update image in article.

