:: How do i reset the SSH password? ::

Discussion in 'iPod touch' started by tystuh, Feb 7, 2010.

  1. tystuh

    tystuh Member

    Joined:
    Nov 4, 2009
    Messages:
    36
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    rock made me change the root password, and i forgot it how do i change it back

    ipod touch 2nd gen 3.1.2
  2. Mr.Funman

    Mr.Funman Banned

    Joined:
    Jul 18, 2009
    Messages:
    641
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
  3. Abcmsaj

    Abcmsaj Retired Moderator

    Joined:
    Jan 26, 2008
    Messages:
    5,501
    Likes Received:
    122
    Device:
    iPhone 6 Plus
    Step 1:

    Download MobileTerminal

    Please Register or Log in to view images



    Step 2:

    Open up MobileTerminal and type "su root" and then return.
    it will ask for a password, so type your current one.

    Step 3:

    Now type "passwd" and hit return.
    Type out your new password, hit return, then retype it (just to confirm) and hit return.
    Job done.
  4. Mr.Funman

    Mr.Funman Banned

    Joined:
    Jul 18, 2009
    Messages:
    641
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    but i forgot my "current one"

    Please Register or Log in to view images

  5. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    Unless you can somehow decrypt whatever salted hash is in the passwd file, there's nothing you can do. Restore.
  6. pavan

    pavan Member

    Joined:
    Mar 10, 2008
    Messages:
    822
    Likes Received:
    0
    Device:
    2G iPod touch
    do you think there is some way u can do it with rock?
    or maybe rejailbreaking but not restoring? idk just tryin to help
  7. Best Name Ever

    Best Name Ever New Member

    Joined:
    Jan 10, 2010
    Messages:
    177
    Likes Received:
    0
    Device:
    2G iPod touch
  8. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    You can't edit that file [/private/etc/master.passwd] without being root. Whether you use iFile, or nano (et al.) on the command line, you have to be root.
  9. Best Name Ever

    Best Name Ever New Member

    Joined:
    Jan 10, 2010
    Messages:
    177
    Likes Received:
    0
    Device:
    2G iPod touch
    what do u mean..
    i did this the other day lol
    i had changed alpine to a password of my choice but forgot it. i googled and found this video and it worked.
  10. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    I just tried it out, and you're right. I need to investigate how the hell it works though...

Share This Page