If you have probably jailbroken your iPhone or iPad using Electra Jailbreak for iOS 11 -iOS 11.1.2, then it is very important that you change the default root password to a new one. This is because Electra jailbreak tool installs an SSH server by default and this could be a major security risk if you connect to public WiFi networks.
If you have installed an SSH client on your device, you should change the default password too.
How to Change the iPhone Root Password on iOS 11
So below are a few steps to help you change the iPhone root password on iOS 11:
Step 1: Get iPhone or iPad’s WiFi Address
First off you need to get the WiFi address of your iPhone or iPad.
- Open the Settings app on your iPhone or iPad.
- Go to Wi-Fi and tap on the blue information icon next to the WiFi network that your device is connected to.
Note down the IP address.
Step 2: SSH into iPhone and iPad
Go to your Mac and open the Terminal application by going to /Applications/Utilities or via Spotlight.
When you get to the prompt, enter the following command and then press Enter.
ssh [email protected]<IP Address>
Terminal may prompt you to confirm if you want to continue connecting, type in yes and then press the Enter key to proceed.
Enter alpine, which is the root password and then press the Enter key.
By now, you should be connected to your iPhone as the root user, the Terminal’s prompt will also change the name of your computer to root.
Step 3: Change iPhone Root Password
To change your iPhone root password, type in passwd.
Now, it will prompt you to enter a new password. Type in any password you want as the new password and press Enter. You will be prompted to type it again. Do so and hit Enter again.
A prompt will come up again. It should confirm that the iPhone root password has been changed successfully.
That is all! Now, you should be protected and it will also prevent anyone else from getting root access to your iOS device when you are connected to a publick Wi-Fi network using the default password.
If you have any feedback or questions, make sure to let us know in the comments section below.