Skip to content

Instantly share code, notes, and snippets.

@farid007
Forked from lyqflnh/ios - ssh - password.txt
Created June 8, 2023 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farid007/25a2322c12bcea57aa63be7985c3c810 to your computer and use it in GitHub Desktop.
Save farid007/25a2322c12bcea57aa63be7985c3c810 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment