The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-15-2007, 09:05 PM
What's Jailbreak?
 
Join Date: Jul 2007
Location: Honolulu, HI
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
SSH disable / Battery drain

So I have heard conflicting things about the battery usage of the SSH server. I have read multiple places that it will drain the battery more quickly, and it seemed to when i have it installed. According to Hillie, a couple threads down, it does not. Any clarification anybody?

Also, Can anybody give a slightly clearer description of how to disable to the SSH if it does in fact cause battery drain. I have been playing with Hillie's tapp scripts but haven't had much luck yet.

Using Windows for now
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 09-15-2007, 09:20 PM
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 106
Thanks: 2
Thanked 9 Times in 7 Posts

Quote:
Originally Posted by easternbmx View Post
So I have heard conflicting things about the battery usage of the SSH server. I have read multiple places that it will drain the battery more quickly, and it seemed to when i have it installed. According to Hillie, a couple threads down, it does not. Any clarification anybody?

Also, Can anybody give a slightly clearer description of how to disable to the SSH if it does in fact cause battery drain. I have been playing with Hillie's tapp scripts but haven't had much luck yet.

Using Windows for now
It is an extra program that needs to be run, so yeah!
It will drain battery more quickly, since it's always on.
However, I imagine there will not be much difference.
It's unlike turning on Wifi all the time, that's hardware radio.
This is software.

Quote:
Originally Posted by easternbmx View Post
Also, Can anybody give a slightly clearer description of how to disable to the SSH if it does in fact cause battery drain. I have been playing with Hillie's tapp scripts but haven't had much luck yet.

Using Windows for now
To disable it on the fly, u need a terminal utility.
In the terminal, type:
# launchctl
once in the launchctl, type:
launchctl% stop com.openssh.sshd
there, u r done.

to restart, just type start instead of start.

Last edited by pengcm; 09-15-2007 at 09:42 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to pengcm For This Useful Post:
easternbmx (09-16-2007)
  #3  
Old 09-16-2007, 12:03 AM
What's Jailbreak?
 
Join Date: Jul 2007
Location: Honolulu, HI
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts

fantastic. Just what i wanted

fantastic. Just what i wanted

Last edited by easternbmx; 09-16-2007 at 12:04 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 09-21-2007, 07:32 AM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts

launchctl is not stopping the service for me. I have to go in and kill the pid but then it restarts automatically.

How can I change it so it does not start automatically. Instead I would like to start sshd from the terminal prompt (or a script) as needed.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 09-21-2007, 07:53 AM
Green Apple
 
Join Date: Jun 2007
Location: Baltimore
Posts: 78
Thanks: 4
Thanked 3 Times in 2 Posts

I have not noticed any battery drain *having sshd idle* all the time, as it used to run all the time for a while until I found Tapp and wrote those scripts. If you use ps and top to evaluate cpu usage, you'll see that idle processes use less than 1% of the cpu, and that's what causes power drain, when things use the cpu.

What DOES drain the battery is having the backlight on all the time, it drains it BIG TIME, and that happens if you either turn AutoLock off or keep tapping the screen to keep it from locking.

I really wish there was a way so that only wi-fi stayed on all the time. coz it would be way more battery efficient, but oh well.

the command you want to use is:

Quote:
launchctl unload -w /Library/LaunchDaemons/com.openssh.sshd.plist
stop SHOULD stop the service, but it doesn't seem to work very well. I've noticed also if you try to start the server (with launchctl start) after doing unload -w, it tends to say it doesn't exist. weird. (note: load -w works ....)

Please note if you're trying to stop sshd via launchctl and you're currently ssh'd into your iPhone it _will_ not work.

However, when you reboot your phone ssh will not be started. The alternative is to type it from one of the terminals available on Installer.app

also that location of the plist file is for the OpenSSH available on Installer.app .. i dunno about the other SSH available on iBrickr.

Last edited by hillie; 09-21-2007 at 07:59 AM.. Reason: clarifications
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 07-21-2008, 02:43 AM
What's Jailbreak?
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post

Can I just note that apparently this isn't necessary on 2.0 Pwned devices using Cydia to install OpenSSH.

Check the FAQ in your Cydia app. It's supposedly different, and they say there is no good reason to disable SSH on your phone now.
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 > iPhone Modding > File Mods

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 08:56 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top