The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2008, 11:06 PM
Green Apple
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0
Operating System: Windows Vista
Posts: 33
Thanks: 7
Thanked 6 Times in 4 Posts
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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 07-27-2008, 02:37 AM
iPhone? More like MyPhone
 
Join Date: Feb 2008
Device + Firmware: 2G iPhone 2.1, 3G 2.1
Operating System: OS X 10.5.5 Intel with too many cores
Location: Not too far from Mr. Miyagi's place
Posts: 126
Thanks: 36
Thanked 20 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to kcrmson For This Useful Post:
Dingle777 (07-27-2008)
  #3 (permalink)  
Old 07-27-2008, 02:52 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 18
Thanked 30 Times in 25 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!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 6 Users Say Thank You to y0haan For This Useful Post:
Dingle777 (07-27-2008), LSZ33 (07-03-2009), ltjbigshot (05-08-2009), pierrechampoux (10-18-2008), stereo313 (07-28-2008), vesko70 (08-24-2008)
  #4 (permalink)  
Old 07-27-2008, 02:53 AM
Green Apple
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0
Operating System: Windows Vista
Posts: 33
Thanks: 7
Thanked 6 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?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 07-27-2008, 03:07 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 18
Thanked 30 Times in 25 Posts

Some other program, read post above yours.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 07-27-2008, 03:07 AM
Green Apple
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0
Operating System: Windows Vista
Posts: 33
Thanks: 7
Thanked 6 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..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 2 Users Say Thank You to Dingle777 For This Useful Post:
helibubba (04-02-2009), vesko70 (08-24-2008)
  #7 (permalink)  
Old 07-27-2008, 03:10 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 18
Thanked 30 Times in 25 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to y0haan For This Useful Post:
kiler6789 (05-30-2009)
  #8 (permalink)  
Old 07-27-2008, 03:20 AM
Green Apple
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0
Operating System: Windows Vista
Posts: 33
Thanks: 7
Thanked 6 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?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9 (permalink)  
Old 07-27-2008, 03:33 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 18
Thanked 30 Times in 25 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..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10 (permalink)  
Old 07-27-2008, 03:59 AM
Green Apple
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0
Operating System: Windows Vista
Posts: 33
Thanks: 7
Thanked 6 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11 (permalink)  
Old 07-28-2008, 06:53 AM
What's Jailbreak?
 
Join Date: Jul 2008
Posts: 25
Thanks: 0
Thanked 4 Times in 3 Posts

i used putty to change mine, worked fine too
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12 (permalink)  
Old 07-28-2008, 11:32 AM
mrblader's Avatar
iPhoneaholic
 
Join Date: Sep 2007
Device + Firmware: 8Gig 2G iphone, 3.0 FW Jailboke=quickpwn
Operating System: MacBook: Leopard 10.5.7
Location: Michigan
Posts: 314
Thanks: 37
Thanked 42 Times in 32 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13 (permalink)  
Old 07-28-2008, 01:51 PM
iPhoneaholic
 
Join Date: Jan 2008
Posts: 302
Thanks: 22
Thanked 38 Times in 30 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14 (permalink)  
Old 07-28-2008, 07:25 PM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 18
Thanked 30 Times in 25 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15 (permalink)  
Old 07-28-2008, 07:50 PM
iAddict's Avatar
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: iPhone 3G 2.0 J.B.
Operating System: Windows Vista
Posts: 29
Thanks: 8
Thanked 17 Times in 6 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Discussion

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 02:25 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408