How to: Change the default SSH password of your iPhone, iPad or iPod touch

[ 2 ] Tuesday, 10 May 2011 |

Rob recently wrote the article How to: Disable SSH on reboot on your iPhone, iPad or iPod touch; this is a guest follow up post by Steven Bullen with additions and editoral by Rob. It explains how to change the default SSH root password as recommended in Rob’s original article. If you are interesting in making guest posts on last place on the net, please get in touch with us.

Photo credit: The Prudent Cyclist (Flickr)

Once you’ve jailbroken your iOS device and installed the OpenSSH app from Cydia, the first thing you must do to ensure maximum security and minimum risk, is change the default SSH password. Before iOS version 3.x and 4.x you could install MobileTerminal (Cydia app) and change the password directly from your iDevice. Unfortunately MobileTerminal is no longer compatible and therefore the only way to change your SSH password is to use an SSH client. It’s a relatively simple process, so let’s walk through it together.

BEFORE YOU START: Ensure you’ve installed SBSettings on your iPhone / iPad / iPod touch and that you’ve got the OpenSSH service running.

On PC:

  • Download and Install Putty
  • Open Putty and enter the IP address for your device. (You can find your IP address of your iDevice within SBSettings. See my device IP as 192.168.0.100 in the below image)

  • Within Putty enter the IP address, ensure you have selected SSH as the communication protocol and that the Port is set to 22.

  • Click on the Open button
  • Login as root
  • Enter the password alpine
  • Then type in passwd and press enter
  • You will then be asked for a New password: and also to Retype new password:

  • It’s recommended that you choose a secure password, mine as an example is 13 characters long and contains 6 numbers
  • Once complete just type exit and press enter to leave Putty

On Mac:

  • Open Terminal (Under Applications > Utilities)
  • Type in SSH <your iDevice IP address>*
  • Press enter
  • If prompted, accept the certificate
  • Enter password alpine
  • Then type in passwd and press enter
  • You will then be asked for a New password: and also to Retype new password:
  • It’s recommended that you choose a secure password, mine as an example is 13 characters long and contains 6 numbers
  • Once complete just type exit and press enter to leave Putty

*= You can find your IP address of your iDevice within SBSettings. As an example SSH 192.168.0.100

Any questions? Got a comment to offer? Please feel free to post in response in the comments section below. Thanks to Steven Bullen for his great contribution.

Tags: , , , , , , , ,

Category: Apple, iPad, iPhone

About the Author ()

Architect, tech meddler, former Jailbreaker, married and father of 2. Sporadic Apple blogger who doesn't have the time to follow a tog career.
  • http://www.iphoneonline.net PkgBackup 4.3.5

    good idea given by you buddy

  • kc

    If it isn’t working, then you may not have downloaded the OpenSSH app from Cydia.

7ads6x98y