How to Change Master Password of iPhone After Jailbreak

Jailbreaking an iPhone can provide us with a series of features and applications that by default we could not enjoy in the Apple ecosystem, but also means opening a security gap in our device since the system is open and with total permissions, for What if we are not careful is possible that hackers or unethical programmers can take control of our mobile and all their data.

ios-passwordWhenever Jailbreak is done, the first thing to do is to change the system default password through an SSH connection. The key that is configured by default is "alpine" and to remain active it is possible that any user can connect remotely to the device, get administrator permissions and access all the information of the same. You can also allow applications to take the "root" permissions using that key,

If we have not done Jailbreak before we must carry out the process and install Cydia from the website of TaiG. If we have already done so we simply have to access Cydia and install the OpenSSH server from the Cydia / Telesphoreo repository.

This application has no icon, so once installed is activated by default.

The next thing we should do on our iPhone is to look for the IP address. To do this we can open the menu> Settings> Wi-Fi and open the information of the network to which we are connected or use other applications such as Fing or DHCP server of the router to view the IP reservation. Viewing the IP from the iPhone settings is the easiest and there is no doubt about it, so we recommend doing so.

In our iPhone, we do not have to do anything else. The only thing left to do is to download an SSH client for our computer ( PuTTY, for example) and open it.

iOS_open_ssh

Here we select that we want to use the SSH protocol and in the section IP, we enter the IP of our device. Click on "Open" and the program will try to connect to our iPhone via SSH.

The first thing you will ask for is the user. We write "root" (without quotes). Then the root password, which as we have said is "alpine".

iOS_open_ssh1We will already be connected to our iPad via SSH. What we must do next is to type two commands:

  • Password: Allows us to change the root password.
  • Passwd mobile: Allows us to change the iOS user password.

We choose the new password we want, we confirm it and we will have the modified default access key, preventing unauthorized users or suspicious applications from taking control of the device without our permission.

iOS_open_ssh2

SSH is not the only danger of Jailbreak

Changing the root password will prevent users or applications from requesting administrator permissions using alpine as a key, however, this does not completely protect our iPhone.

We must bear in mind that if we do Jailbreak we will not be able to install updates or patches that Apple publishes for iOS so it is possible that they can attack our device through the Internet. It is also possible that if we download third-party applications that are not trusted we are installing malware or backdoors in iOS, which is not happening from the App Store.

Finally, we remember that stability and performance can also be altered and our iOS may not work as it should, or as it would if we had not done the Jailbreak.