Thread: CANT change my SSH root password
-
07-21-2008, 12:23 PM #1
CANT change my SSH root password
Im having a problem with SSH in 2.0
So i installed openSSH from cydia, works great.
I use root/alpine
I wanted to change my password so i downloaded mobile terminal from cydia
I also made sure to download "system-cmds" from cydia for the passwd feature
So i went into terminal on my phone and typed passwd
it asked for my old then i entered my new
Everything looked great so i tested it using cyberduck
I used root/alpine, and I STILL GOT IN!
Why didnt it change my password?
I also tried doing "passwd mobile" and it seems that was the same as doing just passwd.
I tried "passwd root", but it says permission denied.
can anyone help?
-
07-21-2008, 12:33 PM #2iPhoneaholic
- Join Date
- Aug 2007
- Location
- San Francisco, CA
- Posts
- 476
- Thanks
- 24
- Thanked 112 Times in 94 Posts
mobile terminal logs you in as mobile.
mobile does not have the right to change root's password.
log in as root!
good luck!http://jpassoc.com/x -- with free itunes under the puppy!
If I help you out, please press ★THANKS!
3g QuickPWN'ed with 2.1
-
07-21-2008, 12:48 PM #3
thanks for your reply!
But how do i log in as root?
Do you mean through my computer with cyberduck?
-
07-21-2008, 12:59 PM #4iPhoneaholic
- Join Date
- Aug 2007
- Location
- San Francisco, CA
- Posts
- 476
- Thanks
- 24
- Thanked 112 Times in 94 Posts
you can use terminal in the utilities folder on os x!
or you can type login root in mobile terminal
don't use cyberduck for password changing.http://jpassoc.com/x -- with free itunes under the puppy!
If I help you out, please press ★THANKS!
3g QuickPWN'ed with 2.1
-
07-21-2008, 01:03 PM #5
thanks finally got it!
one last thing, do you know the command to shut ssh off and on in mobile terminal?
-
07-21-2008, 01:05 PM #6iPhoneaholic
- Join Date
- Aug 2007
- Location
- San Francisco, CA
- Posts
- 476
- Thanks
- 24
- Thanked 112 Times in 94 Posts
you don't have to quit ssh. when all connections are gone , it goes away!
don't forget to press those thanks buttons!http://jpassoc.com/x -- with free itunes under the puppy!
If I help you out, please press ★THANKS!
3g QuickPWN'ed with 2.1
-
The Following 3 Users Say Thank You to jakecigar For This Useful Post:
ecwashere (08-09-2008), jankdalock (07-21-2008), okaybn (07-21-2008)
-
08-09-2008, 01:33 PM #7
Very helpful!
-
04-28-2009, 11:00 AM #8
Changed root password, now cannot access phone.
I have iphone 3G, firmware 2.2.
So this is what I have done so far:
- Installed openSSH to phone
- Used WinSCP to access phone on a Windows XP machine
- I used the "openssl passwd -crypt -salt /s alpine" command in Unix to find out the encryption of my own password, then replaced "alpine" with my own in line "root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh" only to file "/etc/master.passwd".
- I uploaded the new master.passwd file back to the /etc folder then disconnected WinSCP.
When I tried to reconnect in WinSCP with my new password, access was denied.
When I tried to use MobileTerminal to get into my phone, I get the following message:
login: /bin/sh\r: No such file or directory
I am not able to do anything else in MobileTerminal from this point on.
Please help? What should I do now?



LinkBack URL
About LinkBacks
Reply With Quote

