Skip to content

Instantly share code, notes, and snippets.

@lyqflnh
Last active October 27, 2025 01:13
Show Gist options
  • Select an option

  • Save lyqflnh/8b8b0875932d3208d1993572d4ec44f2 to your computer and use it in GitHub Desktop.

Select an option

Save lyqflnh/8b8b0875932d3208d1993572d4ec44f2 to your computer and use it in GitHub Desktop.
ways to change password of the root or mobile account of ur jailbreak ios device
#if u have the root password which default is "alpine"
1.login as root, using command "ssh root@ip address"
2.type ur password: alpine
3.type command "passwd" to change ur root password
4.when it is done, type command "passwd mobile" to change the mobile passwd
#if u forget ur root passwd
1.open the file named "master.password" at /private/etc on ur jailbreak ios device
2.find the string like this:
root:xxxxxxxxxxxxx:0:0::0:0:System Administrator:/var/root:/bin/sh
mobile:xxxxxxxxxxxxx:501:501::0:0:Mobile User:/var/mobile:/bin/sh
3.change the string "xxxxxxxxxxxxx" to "/smx7MYTQIi2M" and ur root or mobile password is reset to "alpine"
#if u want to login ur jailbreak ios device through ssh without password, follow following steps:
1.run command "ssh-keygen" on ur mac, press "enter" three times, and u will get 2 documents at "ur user profile/.ssh/"
2.run command "ssh-keygen" on ur jailbreak ios device, and u will get 2 document at "var/root/.ssh/"
3.copy id_ras.pub from ur mac to ios device:"var/root/.ssh/"
4.rename "id_ras.pub" to "authorized_keys"
5.now u can login ur ios without password: ssh root@192.168.X.X
@zopetr
Copy link
Copy Markdown

zopetr commented Jan 28, 2024

4B157557-CC72-4DDA-9588-1EAE975E198B
I cand acces the file any fix?

@murthydaarapureddy
Copy link
Copy Markdown

even after u change the master.passwd and Permitrootlogin to yes its not working?

@murthydaarapureddy
Copy link
Copy Markdown

So is there any way to reset it to its default?

@JoelPeterPage
Copy link
Copy Markdown

Thank you, on Sep 28, 2024 from South Australia..

@0tax00
Copy link
Copy Markdown

0tax00 commented Oct 31, 2024

thank you !!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment