Help please - can't change my iphone password!

Discussion in 'Jailbreaks and iOS Hacks' started by Sseguin, Dec 20, 2009.

  1. Sseguin macrumors regular

    Joined:
    Dec 6, 2009
    #1
    So I downloaded mobile terminal and changed the password. But, evertime I ssh in my phone I have use the alpine password? How come it doesn't change it? Thx.
     
  2. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #2
    Probably because you changed the password for mobile and not for root. MobileTerminal defaults to user logged in, mobile. When you are using SSH to transfer files, etc you need to use root. You SSH to your iPhone with a terminal from your PC using root/alpine, then type passwd and change the password. Then type passwd mobile and change mobile's password. :)
     
  3. Sseguin thread starter macrumors regular

    Joined:
    Dec 6, 2009
    #3
    I am using WinSCP to SSH into my phone. How do I change my root password with WinSCP?

    Or how do I change my root password using mobileterminal with my phone?
     
  4. ckong macrumors regular

    Joined:
    Nov 12, 2009
    #4
    There are actually two accounts: "root" and "mobile". You might be logging in with one and forgot to change the default "alpine" password on the other. Be sure to change them both.

    There are many guides on how to do this if you google "change iphone ssh password". Here's one link that looks good:

    http://www.redmondpie.com/how-to-secure-your-jailbroken-iphone-from-ssh-hack-9140084/

    You also might want to think about using a "AllowUsers" command in the /private/etc/ssh/sshd_config. I've used it to restricted my iPhone to certain stations on my local network making remote hacking very unlikely.
     
  5. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #5
    I'm not familiar with WinSCP as I am a Mac user but if you want to use terminal, you need to type: login. Then type root, hit enter and type: alpine and hit enter. Then type passwd to change the password. :)
     
  6. Sseguin thread starter macrumors regular

    Joined:
    Dec 6, 2009
    #6
    This procedure worked great! Thanks.
     

Share This Page