Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > iPhone, iPod and iPad > iOS > Jailbreaks and iOS Hacks

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 4, 2009, 09:15 AM   #1
Anasztasia
macrumors newbie
 
Join Date: Dec 2009
Forgot my SSH password, now what?

As the tittle suggests, i changed my ssh password and now i forgot what it is, am i in deep ****? what can i do to recover/reset it?
Anasztasia is offline   0 Reply With Quote
Old Dec 4, 2009, 09:20 AM   #2
ngenerator
macrumors 68000
 
ngenerator's Avatar
 
Join Date: May 2009
Location: USG Ishimura
Restore, re-jailbreak, reinstall everything. That's the only thing I can think of
__________________
4 // Itchy. Tasty.
ngenerator is offline   0 Reply With Quote
Old Dec 4, 2009, 09:34 AM   #3
loki007420
macrumors member
 
Join Date: Jul 2009
Location: Detroit
Send a message via AIM to loki007420 Send a message via Yahoo to loki007420
couldnt you just uninstall SSH and reinstall it?
loki007420 is offline   0 Reply With Quote
Old Dec 4, 2009, 09:38 AM   #4
Anasztasia
Thread Starter
macrumors newbie
 
Join Date: Dec 2009
i read somewhere that reinstalling SSH does nothing to reset the password, and as for complete restore and reJB i guess that would be my very last step when all else fails
Anasztasia is offline   0 Reply With Quote
Old Dec 4, 2009, 09:53 AM   #5
thelatinist
macrumors 603
 
thelatinist's Avatar
 
Join Date: Aug 2009
Location: Connecticut, USA
The password is not an 'SSH' password. It is the password for the 'root' user account in in the iPhoneOS (which is basically BSD). If you truly cannot remember it, then the only thing to do is restore your phone.
__________________
Late 2008 (Penryn) 13" White MacBook 2.4 GHz Core2Duo, 4 GB Ram, Samsung 840p SSD; iPhone 4S 64 GB, AppleCare+
thelatinist is offline   0 Reply With Quote
Old Dec 4, 2009, 09:57 AM   #6
iphonegeek786
macrumors 6502
 
Join Date: Nov 2009
When you change the passwrd, your changing the password for the whole, the core files of it. The password is not only used for ssh.
iphonegeek786 is offline   0 Reply With Quote
Old Dec 4, 2009, 10:03 AM   #7
Cupra
macrumors regular
 
Join Date: Jun 2009
Location: London, UK
http://www.youtube.com/watch?v=mQx5NXgs7Lw
Cupra is offline   0 Reply With Quote
Old Dec 4, 2009, 10:42 AM   #8
ckong
macrumors regular
 
Join Date: Nov 2009
Quote:
Originally Posted by Cupra View Post
Interesting video. It implies if you have a 3rd party utility on the iPhone that has root access already (in this case iCommander), then you should be able to set permissions on the /private/etc/master.passwd file for all to read/write (0666).

I just checked and I can access this file with iFile, and edit it...all without knowing the root password. (It least I think I can save it...I hit 'edit' then 'cancel' so I didn't mess myself up.)

So...the old adage is true. You can break in...so long as you have physical access.

On Linux, passwords are normally kept in or linked from the /etc/passwd file. It's interesting this video points you to the /private/etc/master.passwd file. There's also a /private/etc/passwd file there too. Before you start hacking away, best to backup any files you're going to edit to a subdirectory. Then, just duplicate the "mobile" accounts password to the "root" over the root password and you should be good to go. If it doesn't work, copy back the file you just mucked with and try another.

Gotta love iFile. Worth the $4 I paid for it.

Last edited by ckong; Dec 4, 2009 at 11:39 AM.
ckong is offline   0 Reply With Quote
Old Dec 4, 2009, 12:22 PM   #9
thelatinist
macrumors 603
 
thelatinist's Avatar
 
Join Date: Aug 2009
Location: Connecticut, USA
Quote:
Originally Posted by ckong View Post
Gotta love iFile. Worth the $4 I paid for it.
Absolutely. It is my most-used jailbreak app.
__________________
Late 2008 (Penryn) 13" White MacBook 2.4 GHz Core2Duo, 4 GB Ram, Samsung 840p SSD; iPhone 4S 64 GB, AppleCare+
thelatinist is offline   0 Reply With Quote
Old Dec 5, 2009, 03:29 AM   #10
calvy
macrumors 65816
 
Join Date: Sep 2007
can't you just download mobile terminal and use the passwd command to change the password?
calvy is offline   0 Reply With Quote
Old Dec 5, 2009, 07:00 AM   #11
kmiranda
macrumors newbie
 
Join Date: Dec 2009
Quote:
Originally Posted by calvy View Post
can't you just download mobile terminal and use the passwd command to change the password?
You need the current password to change to a new password.
kmiranda is offline   0 Reply With Quote
Old Dec 5, 2009, 06:45 PM   #12
ckong
macrumors regular
 
Join Date: Nov 2009
Quote:
Originally Posted by calvy View Post
can't you just download mobile terminal and use the passwd command to change the password?
You can...in part.

Using MobileTerminal logs you with the username "mobile". You'd normally only have ReadOnly rights to the password file.

That's what the video in the link above was allowing. Using iCommander, the access rights to the master.passwd file were changed so anybody could write to the file.

So...a combination of the two programs allows you to hack in.

But...I'm pretty sure this can all be accomplished with just iFile as it seems to have root access to the phone and can edit files directly. (Of course, I haven't ever tested this as I try not to forget my 'root' password. )
ckong is offline   0 Reply With Quote
Old Dec 6, 2009, 02:40 PM   #13
DazBrowne
macrumors member
 
Join Date: Dec 2009
The morel of the story is just have one super good password for every thing like mine (78*jsuutyw33) nobody will ever guess that!
DazBrowne is offline   0 Reply With Quote
Old Dec 6, 2009, 02:52 PM   #14
LeeTom
macrumors 65816
 
LeeTom's Avatar
 
Join Date: May 2004
Quote:
Originally Posted by DazBrowne View Post
The morel of the story is just have one super good password for every thing like mine (78*jsuutyw33) nobody will ever guess that!
Damn, you were kidding!
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2009-12-06 at 12.51.14 PM.png
Views:	164
Size:	20.0 KB
ID:	206156  
__________________
iPhone 3GS <- iPhone 3G <- iPhone 8GB
MacBook Pro 2.5 <- PowerBook G4 1.67 <- PowerBook G4 1.25 <- iMac G3/400 <- Mac LC <- Mac Plus
LeeTom is offline   0 Reply With Quote
Old Dec 9, 2009, 11:19 AM   #15
DazBrowne
macrumors member
 
Join Date: Dec 2009
Haha I aint stupid! Its actually password just to let you know !
__________________
"Never kick a fresh turd on a hot day."
DazBrowne is offline   0 Reply With Quote
Old Dec 21, 2009, 01:55 PM   #16
iCROLT
macrumors newbie
 
Join Date: Dec 2009
i figured it out!

i discovered the EASIEST way to get the password back to alpine

and you can do it in less than 5 minutes!

http://www.youtube.com/watch?v=wzDB52lKlc8

so, please tell everyone about the video, and comment, subscribe if you have youtube account

thanks

btw. hope this helps

PM me about your success
iCROLT is offline   0 Reply With Quote
Old Dec 21, 2009, 04:03 PM   #17
darngooddesign
macrumors G3
 
Join Date: Jul 2007
Location: Atlanta, GA
I felt like I was watching an old SCTV skit. Please use a tripod.
__________________
64 giggity... giggity... gigg-i-ty
Lego Apple Store
darngooddesign is offline   0 Reply With Quote
Old Dec 21, 2009, 09:30 PM   #18
bytethese
macrumors 68030
 
bytethese's Avatar
 
Join Date: Jun 2007
Location: Cranford, NJ
Quote:
Originally Posted by darngooddesign View Post
I felt like I was watching an old SCTV skit. Please use a tripod.
I can't see your password, when you type it all I see is ************, but when you see it you see 78*jsuutyw33. Get it?
__________________
So I prison break my phone, use Chlamydia to install un-John Hancock'd apps, then I somehow use a Surfboard to change the way my African Safari looks
bytethese is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iOS > Jailbreaks and iOS Hacks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
I forgot my password.... stanw OS X Mavericks (10.9) 8 Nov 24, 2013 10:30 AM
Forgot my password crazypeter Site and Forum Feedback 2 Nov 16, 2013 07:43 PM
I forgot my password Noursidani iPhone 3 Sep 8, 2013 11:44 AM
how to change email password in iPhone when i forgot password that i registered with? 1madapple iPhone 2 Nov 3, 2012 11:08 PM
iPhone: I forgot my password Killa k Jailbreaks and iOS Hacks 11 Oct 14, 2012 08:23 PM

Forum Jump

All times are GMT -5. The time now is 01:36 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC