OpenSSH password file

Discussion in 'Jailbreaks and iOS Hacks' started by j0ebeer, Nov 14, 2007.

  1. j0ebeer macrumors member

    Mar 5, 2007
    I've reinstalled openssh onto the phone but can't remember my old password. By default openssh uses the password alpine on firmware 1.1.1 but that doesn't work. I'm guessing it's using the password from the previous install. Is there a file that can be deleted or way around this?

    I'm surprised it's using an old password as when I upgraded from 1.0.2 to 1.1.1 it was a fresh install of 1.1.1.

    Any ideas?

  2. wrboyce macrumors 6502

    Oct 30, 2007
    Your password is stored in /etc/master.passwd in a md5 hash. OpenSSH only authenticates you against the password in there (the username is root in this case).

    I'd guess this file is replaced when doing a restore, and that this is your only option (thus resetting to 'alpine').
  3. ghostshadow777 macrumors member


    Oct 4, 2007
    Or you can change password. Install Mobile Terminal from Installer on the iPhone, it's called TermV...something, I can't quite remember. Launch mobile terminal, type in "passwd" (withouth the quotes of course), then type in your new password.
  4. j0ebeer thread starter macrumors member

    Mar 5, 2007
    Excellent, that worked like a charm. Thanks

Share This Page