+ Reply
Page 1 of 2 12 LastLast
Results 1 to 20 of 28

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Change Password of OpenSSH from 'alpine' in iPhone3G 2.0

is a discussion within the

Native iPhone / iPod Touch App Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Hi all, Does anyone know how to change the openSSH password from the default 'alpine' on a iPhone3G running jailbroken 2.0 firmware with OpenSSH installed via cydia??? Old forum threads
...
  1. #1
    Green Apple
    Join Date
    Jul 2008
    Posts
    33
    Thanks
    7
    Thanked 7 Times in 4 Posts

    Question Change Password of OpenSSH from 'alpine' in iPhone3G 2.0
    Hi all,

    Does anyone know how to change the openSSH password from the default 'alpine' on a iPhone3G running jailbroken 2.0 firmware with OpenSSH installed via cydia???

    Old forum threads say type the 'passwd' command into the terminal...but when I do that in the terminal of WinSCP, nothing happens and either WinSCP hangs or the SSH connection disconnects.

    I'm using:
    1. iPhone3G 8Gb running Jailbroken 2.0 firmware with OpenSSH installed via cydia
    2. WinSCP on Windows Vista

  2. #2
    iPhone? More like MyPhone
    Join Date
    Feb 2008
    Location
    Not too far from Mr. Miyagi's place
    Posts
    126
    Thanks
    36
    Thanked 21 Times in 17 Posts

    Try:

    passwd root
    type in password, press return
    type it in again, press return

    passwd mobile
    type in password, press return
    type it in again, press return

    I've done this one multiple phones with 2.0 with no issue so far.
    I came, I saw, I forgot what the hell I was there for.

  3. The Following 2 Users Say Thank You to kcrmson For This Useful Post:

    Dingle777 (07-27-2008), NakedFaerie (11-24-2009)

  4. #3
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    This most likely will not work with WinSCP.

    - Install Terminal via Cydia
    - Run Terminal and since this logs you in as mobile user by default you need to type at the prompt:
    su root
    password: (type alpine)

    Now you should be logged in as root. Then just type:
    passwd

    It should now prompt you to type in a new password.

    Good luck!!

  5. The Following 8 Users Say Thank You to y0haan For This Useful Post:

    Andis Jackson (10-18-2008), Dingle777 (07-27-2008), LSZ33 (07-03-2009), ltjbigshot (05-08-2009), mgmm1 (01-11-2014), stereo313 (07-28-2008), vesko70 (08-24-2008), WhyKnot (03-24-2011)

  6. #4
    Green Apple
    Join Date
    Jul 2008
    Posts
    33
    Thanks
    7
    Thanked 7 Times in 4 Posts

    Thanks, but when i type 'passwd root' or 'passwd mobile' into the terminal it just disconnects WinSCP or crashes the program entirely. Are you using WinSCP or some other program?

  7. #5
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    Some other program, read post above yours.

  8. #6
    Green Apple
    Join Date
    Jul 2008
    Posts
    33
    Thanks
    7
    Thanked 7 Times in 4 Posts

    Thanks Guys! worked like a charm!

    1. Installed openSSH and MobileTerminal from cydia
    2. open Terminal on iphone and type 'su root' and press return
    3. enter password 'alpine' and press return
    3. type 'passwd' and press return
    4. type in new password and press return
    5. type in new password again and press return
    6. Use WinSCP to connect to iPhone with new password (instructions for using WinSCP can be found in other threads/by a google search)

    Cheers!
    Last edited by Dingle777; 07-27-2008 at 03:21 AM.

  9. The Following 3 Users Say Thank You to Dingle777 For This Useful Post:

    helibubba (04-02-2009), NakedFaerie (11-24-2009), vesko70 (08-24-2008)

  10. #7
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    Quote Originally Posted by Dingle777 View Post
    Thanks Guys! worked like a charm!

    1. Installed openSSH and MobileTerminal from cydia
    2. open Terminal on iphone and type 'su root' , press return
    3. enter password 'alpine' and press return
    3. type 'passwd' and press return
    4. type in new password and press return
    5. type in new password again and press return
    6. Use WinSCP to connect to iPhone with new password (instructions for using WinSCP can be found in other threads/by a google search)

    Cheers!
    Sounds about right

    Cheers

  11. The Following User Says Thank You to y0haan For This Useful Post:

    kiler6789 (05-30-2009)

  12. #8
    Green Apple
    Join Date
    Jul 2008
    Posts
    33
    Thanks
    7
    Thanked 7 Times in 4 Posts

    It should be easier than this to change the password cos i feel like its a big security flaw!?

    Wouldn't bad 'n' nasty people on your wireless network (like at the university i go to) simply be able to connect via SSH to your iphone and manipulate the data if you didn't change the default password?

  13. #9
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    Quote Originally Posted by Dingle777 View Post
    It should be easier than this to change the password cos i feel like its a big security flaw!?

    Wouldn't bad 'n' nasty people on your wireless network (like at the university i go to) simply be able to connect via SSH to your iphone and manipulate the data if you didn't change the default password?
    - Well, Apple could not for see this jailbreak comin'
    - You can also disable SSH via installing "boss prefs"
    - And of course ... Public Networks are NOT real secure
    - And Unix is UNIX ....
    Last edited by y0haan; 07-27-2008 at 03:37 AM.

  14. #10
    Green Apple
    Join Date
    Jul 2008
    Posts
    33
    Thanks
    7
    Thanked 7 Times in 4 Posts

    thanks mate, even if it is a bit tricky to change the password, its good to know I can switch ssh off easily too

  15. #11
    What's Jailbreak?
    Join Date
    Jul 2008
    Posts
    26
    Thanks
    0
    Thanked 5 Times in 4 Posts

    i used putty to change mine, worked fine too

  16. The Following User Says Thank You to kitkat12012 For This Useful Post:

    NakedFaerie (11-24-2009)

  17. #12
    iPhoneaholic mrblader's Avatar
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    345
    Thanks
    39
    Thanked 45 Times in 34 Posts

    Kind of a retarded question here but, Do I have to have OpenSSH turned on while using the MobileTerminal app???

    Is this required to log into the root folder??

    Just curious..

    thanks in advanced

  18. #13
    iPhoneaholic
    Join Date
    Jan 2008
    Posts
    325
    Thanks
    23
    Thanked 43 Times in 32 Posts

    I do not believe you need to have OpenSSH on to use MobileTerminal. You only need it when accessing it remotely from a computer, another phone, etc etc.
    If you like or found helpful anything I have said, please click that nice little Thanks button!

  19. #14
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    Quote Originally Posted by mrblader View Post
    Kind of a retarded question here but, Do I have to have OpenSSH turned on while using the MobileTerminal app???

    Is this required to log into the root folder??

    Just curious..

    thanks in advanced
    Nope

  20. #15
    Green Apple iAddict's Avatar
    Join Date
    Jul 2008
    Posts
    39
    Thanks
    13
    Thanked 21 Times in 9 Posts

    I've tried passwd on terminal, I've tried the encryption method and have the password file replaced on WinSCP and other methods.

    All ended up having access denied to SSH and had to do a restore.

    I do not recommend anyone changing the password unless you really really know what you are doing and what the commands are.

    For safety, simply turn off SSH when you are not using it, ALWAYS.

  21. #16
    Theme Creator stereo313's Avatar
    Join Date
    Jul 2007
    Location
    A-town
    Posts
    665
    Thanks
    184
    Thanked 663 Times in 240 Posts

    thanks
    THANK OR DIE

  22. #17
    What's Jailbreak?
    Join Date
    Oct 2008
    Location
    ID
    Posts
    12
    Thanks
    2
    Thanked 1 Time in 1 Post
    Really? Bc I just did it in under 30 seconds (not inluding download time of Mobile Terminal) following Dingle777 step by step instructions above...

  23. #18
    What's Jailbreak?
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    worked for my fine. thanks a lot!

  24. #19
    iPhoneaholic LSZ33's Avatar
    Join Date
    Sep 2007
    Location
    Killeen, Texas, United States
    Posts
    363
    Thanks
    72
    Thanked 30 Times in 24 Posts

    Works for me on 3G[s], thanks alot.

  25. #20
    What's Jailbreak?
    Join Date
    Jan 2009
    Location
    not where you're at
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Worked for me - iPhone 3G running 3.0 OS_

    Question anyone - if I change the Mobile and the Root PW to the same thing - will it be an issue?

    My Assumption is No_

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts