-
07-26-2008, 11:06 PM #1
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
-
07-27-2008, 02:37 AM #2iPhone? 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.

-
The Following 2 Users Say Thank You to kcrmson For This Useful Post:
Dingle777 (07-27-2008), NakedFaerie (11-24-2009)
-
07-27-2008, 02:52 AM #3iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 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!!
-
The Following 7 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), stereo313 (07-28-2008), vesko70 (08-24-2008), WhyKnot (03-24-2011)
-
07-27-2008, 02:53 AM #4
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?
-
07-27-2008, 03:07 AM #5iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 Times in 26 Posts
Some other program, read post above yours.

-
07-27-2008, 03:07 AM #6
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.
-
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)
-
07-27-2008, 03:10 AM #7iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 Times in 26 Posts
-
The Following User Says Thank You to y0haan For This Useful Post:
kiler6789 (05-30-2009)
-
07-27-2008, 03:20 AM #8
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?
-
07-27-2008, 03:33 AM #9iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 Times in 26 Posts
-
07-27-2008, 03:59 AM #10
thanks mate, even if it is a bit tricky to change the password, its good to know I can switch ssh off easily too
-
07-28-2008, 06:53 AM #11
i used putty to change mine, worked fine too
-
The Following User Says Thank You to kitkat12012 For This Useful Post:
NakedFaerie (11-24-2009)
-
07-28-2008, 11:32 AM #12
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
-
07-28-2008, 01:51 PM #13
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!
-
07-28-2008, 07:25 PM #14iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 Times in 26 Posts
-
07-28-2008, 07:50 PM #15
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.
-
07-28-2008, 08:06 PM #16Theme Creator
- Join Date
- Jul 2007
- Location
- A-town
- Posts
- 665
- Thanks
- 184
- Thanked 662 Times in 240 Posts
thanks
THANK OR DIE
-
10-18-2008, 09:13 AM #17
Really? Bc I just did it in under 30 seconds (not inluding download time of Mobile Terminal) following Dingle777 step by step instructions above...
-
05-07-2009, 01:48 PM #18
worked for my fine. thanks a lot!
-
07-03-2009, 03:38 PM #19iPhoneaholic
- Join Date
- Sep 2007
- Location
- Killeen, Texas, United States
- Posts
- 351
- Thanks
- 72
- Thanked 30 Times in 24 Posts
Works for me on 3G[s], thanks alot.
-
07-13-2009, 07:04 PM #20What'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_



LinkBack URL
About LinkBacks
Reply With Quote

