OpenSSH password file

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

  1. j0ebeer macrumors member

    Joined:
    Mar 5, 2007
    #1
    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?

    Joe
     
  2. wrboyce macrumors 6502

    Joined:
    Oct 30, 2007
    #2
    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

    ghostshadow777

    Joined:
    Oct 4, 2007
    #3
    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

    Joined:
    Mar 5, 2007
    #4
    Excellent, that worked like a charm. Thanks
     

Share This Page