How to change your root password without MobileTerminal

Discussion in 'Jailbreaks and iOS Hacks' started by bkingtu83, Oct 14, 2010.

  1. bkingtu83, Oct 14, 2010
    Last edited: Feb 18, 2011

    bkingtu83 macrumors member

    Joined:
    Sep 29, 2010
    #1
    Ok, since i jailbroke my iphone 4 on 4.1, i want to ssh into it, but i want to be on the safe side and change my root password. As most people have found out, MobileTerminal is not working on the iphone 4 (or it could be just the ios 4.1). Whatever the case may be, it just crashes upon opening, so you cant change your password from the device.

    Well, after a little searching, i found a way to change the root password for my iphone 4 without using MobileTerminal. Here is how

    Before I go any further, this is for WINDOWS users. I do not have a mac, but this youtube video will work for you
    http://www.youtube.com/watch?v=OKaOskbIWGU

    For those of you with Windows, this is what all you need:
    On iPhone
    Jailbroken iphone 4 on 4.1 (im assuming this will work with others phones as well as other firmwares)
    OpenSSH installed through Cydia

    On PC:
    winSCP (downloadable here) http://sourceforge.net/projects/winscp/files/WinSCP/4.2.9/winscp429setup.exe/download
    Putty (downloadable here)http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
    note: for putty, download the putty.exe file (first one in first column). THIS IS ALL YOU NEED!
    and obviously of course, a wifi connection with both the phone and pc hooked up to it

    1. obtain the ip address of your iphone
    2. open Putty on your pc
    3. when the putty box opens, input your iphone ip address as the host name. make sure the port # is 22 and the connection type is SSH. a box appears about the cache, bla bla bla. i just clicked ok
    4. when the box opens, it will say "login as". type in "root"
    5. the next line should say "root@<iphone ip address>'s password". input the word "alpine"
    6. the next line should say "<your iphone name>:~ root#". input the command "passwd"
    7. input your new password, and re-enter it to verify it
    8. it should go back to the line from #6. if this is correct, open winSCP
    9. in winSCP, input your iphone's ip as the host name, ROOT as the username, and your new password as the password. and click login
    10. if all is successful, you should have SSH'd into your iphone with your new password

    i know this is sort of vague and sloppy, but i will update later tonight with more details and screenshots

    hope this helps everyone
     
  2. hoffmant macrumors member

    Joined:
    Jun 13, 2008
    #2
    I had no problem with MobileTerminal (the one designed for iOS 4) on 4.1 today. Got my password changed & was able to SSH just fine.
     
  3. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #3
    I actually have a better solution for the dilemma of root passwords:

    Don't bother with changing your root password at all. Because you shouldn't bother with SSH at all.

    If you want to modify your iphones file contents, and browse the file system, use ifunbox. No SSH, ip addresses, multiple programs, root passwords, etc, needed.

    I promise you you'll be able to do 100% of what you think you want to do with SSH, with ifunbox.
     
  4. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #4
    It would be a help except that usernames and passwords are case sensitive so you instructions will never work.

    S-
     
  5. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #5
    This is wrong on so many levels it is laughable....

    S-
     
  6. xavierpunkreno macrumors 6502

    Joined:
    Jul 22, 2010
    #6
    +1
     
  7. apmorency macrumors regular

    Joined:
    Jul 5, 2010
    #7
    Mobile terminal is not the only terminal app. There are others available from the app store.
     
  8. jayhawk11 macrumors 6502a

    jayhawk11

    Joined:
    Oct 19, 2007
    #8
    This.

    You can download the newest version here: Mobile Terminal 472 on Google Code

    Or, if you're lazy, you can get a slightly older version from the Xsellize repo by following these directions: Installing Mobile Terminal 426 from Xsellize
     
  9. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #9
    Name one material thing, S. I know you're going to say you cant do it over wifi, right? Thats not what I'm referring to. I'm referring to transferring, and modifying, files on your iPhone. Why else would you use SSH? Name something, come on.

    If someone created a program that double clicked the internet icon for you, sidewinder would use it. I prefer to just get shi! done.
     
  10. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #10
    Name one?? Can't do it. But I can name at least 7 without thinking about.

    Here they are:

    1. Find the location of a file when I know the name or even just part of name.

    2. Find a file based on it's content.

    3. Get a list of all files, sorted by size, with the largest files at the top of the list.

    4. Generate a list of installed packages.

    5. Manually install or remove packages.

    6. Easily and quickly edit plist files.

    7. Easily delete bad repos.

    S-
     
  11. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #11

    You're 0/7. I can do all of the above with ifunbox. Especially the plist editing, deletion of repos, app install and remove, etc. You would not believe how easy ifunbox is to use.

    Try again. Or don't, don't worry about it. We all know you try to make life harder on yourself so you can feel smart.
     
  12. spamdumpster macrumors 6502a

    Joined:
    Jan 22, 2008
    #12
    I think what s/he's suggesting is that you can't run terminal commands with ifunbox, that it's just a file explorer. I don't know if this is true, because I've never used ifunbox. But, I suspect that you cannot run terminal commands, and, if that's true, you just got owned in a big, big way. But, again, I don't know.
     
  13. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #13
    Explain how you can run the "dpkg" command to install and remove packages.

    Explain how you can run the "dpkg" command to generate a list of installed packages.

    Explain how you find a file or list of files based on their content.

    Explain how you could generate a text file with a list of files sorted by size.

    Explain how you would edit a plist file on the device.

    Explain how you would delete a bad repo.

    S-
     
  14. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #14
    How did I get owned in a big big way? What actual use is running terminal commands? If you need to run terminal commands, get mobile terminal on your phone. I suspect not many users need terminal commands.

    I think you and S are thinking of iPhone explorer. Not the same thing. The program I'm referring to lets you do much more, including transferring music directly to your phone without itunes, install cydia apps as mentioned, search, PLIST instant conversion and editing, and more.

    OK i'll modify my original statement. 99.9% of things a person wants to accomplish with SSH can be done with IFB. But heres the real kicker: There is 0 configuration, no password hassels, no ip addresses, aka the return on your time is exponentially better.

    Heres a screenshot showing the program and some of the stuff it does, including real time translation of app names from crypic key strings to names:

    [​IMG]
     
  15. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #15
    Dont need to run the commands for the first two. You can do what you want to do (modify packages) with the program itself. See the screenshot where it says "Install Cydia App"?

    Search for files is present in screenshot. You can also search with size constraints.

    It converts Plists instantly and displays then using a text editor.

    Bad repos are found in a plist in the cydia folder, simply open it and delete.


    I could go on an on.
     
  16. outphase macrumors 65816

    Joined:
    Jun 13, 2009
    Location:
    Parts Unknown
    #16
    I'm still curious as to how "Cydia App Install" allows you to install a .deb file such as the commcenter patch.

    There's always someone that's anti-GUI or anti-CLI in every crowd.
     
  17. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #17
    Ask the developer. It works so who cares?

    I will state it again: 99% of what (I'll say) 99% of jailbreakers want to do can be accomplished this way. "Power Users" might need some minuscule feature of SSH, but i'm betting if they are honest with themselves, they will find that most of their needs would be met by this program.
     
  18. outphase macrumors 65816

    Joined:
    Jun 13, 2009
    Location:
    Parts Unknown
    #18
    Why do you care if a power user chooses SSH? Does it physically hurt you to know that someone is more comfortable with it than you are?
     
  19. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #19
    Personally, I do forensic captures over Wifi, need SSH, netcat and dd for it to work. :)
     
  20. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #20
    Its just not needed. Why would I go through a 40 step process to do what I can do with 1 step?
     
  21. spamdumpster macrumors 6502a

    Joined:
    Jan 22, 2008
    #21
    I so hope that you're joking or trolling.

    This whole thread is about someone trying to do something without mobileterminal that you really need mobileterminal to do. So, even if ifunbox could wash your car and make you a tasty sandwich, if it can't run terminal commands, it can't be use as a replacement for mobileterminal.
     
  22. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #22
    Yeah I was guessing someone would have a legitimate use for SSH. But for most users, who just want to modify their phones contents, or install a winterboard theme, don't you think its overkill when an alternative like this exists?
     
  23. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #23
    They want to do something (change their root password) they wouldnt have to do in the FIRST PLACE if they used ifunbox. See? If you use SSH, you have to change your password. To change your password you need mobile terminal. After you do all that, you use SSH to lets say put a theme on your phone.

    I prefer to just put the theme on the phone, and not worry about the rest. End result is the same.
     
  24. outphase macrumors 65816

    Joined:
    Jun 13, 2009
    Location:
    Parts Unknown
    #24
    So what you're saying is that instead of posting on topic (that is changing the root password w/o mobile terminal), you are having a crusade against SSH because you personally don't have a use for it?
     
  25. kre62 macrumors 68000

    Joined:
    Jul 12, 2010
    #25
    Might as well educate people while I'm at it. I'm here to help bro.
     

Share This Page