Results 1 to 4 of 4
Discuss OpenSSH battery drain at the iPhone "2G" (Rev. 1) - Hackint0sh.org; Having recently updated to 1.1.1 I have finally managed to get Installer v3.0b4 to work. ...
  1. #1
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    115
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default OpenSSH battery drain

    Having recently updated to 1.1.1 I have finally managed to get Installer v3.0b4 to work. However, now I have finished SSH'in for a while I want to turn it off (i.e. uninstall it) to preserve my battery life, as I used to (uninstall / install when needed) with 1.0.2. The problem is when I try to uninstall I get the following message - Error Main script execution failed!

    I've tried the Systems.app to switch it off but I am not sure that works with my set up. What I would like to ask is:

    How can I fix the Error message or how can I manually remove OpenSSH?

    Thanks...



  2. #2
    Administrator Array

    Join Date
    Oct 2007
    Posts
    4,145
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    With the new installer, did you try to install openSSH again and remove it?.

    SSH is a good thing to have and to keep around. What you can do is install the services app (not systems.app) under Utilities. You can use that to turn off SSH.

    I don't think openssh is draining battery because the sshd daemon is not running (run ps -aux from command line & you see there isn't one).

    I looked at /etc/init.d and see that dropbear is there - I believe that is the daemon listenning on port 22 for ssh connection (run ps -aux & you will see the process).

    you can test by kill the process to see if your ssh session drop. Once you loose the connection, you would have to restart the phone to have the daemon running again.

    OH ... BTW, read this: http://www.hackint0sh.org/forum/show...aining+battery
    Last edited by dtube; 10-22-2007 at 03:55 AM.

  3. #3
    Newbie Array

    Join Date
    Oct 2007
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    1) if ssh daemon isn't running, I don't see how it could suck juice out of your battery
    2) even if it is still running, a daemon that just listen a port will sleep until someone connects to it. in case you don't use it at all, ssh daemon sucks power only when you start your phone, when the daemon initializes itself.

  4. #4
    Professional Array

    Join Date
    Sep 2007
    Posts
    51
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    Quote Originally Posted by jimwilx1 View Post
    Having recently updated to 1.1.1 I have finally managed to get Installer v3.0b4 to work. However, now I have finished SSH'in for a while I want to turn it off (i.e. uninstall it) to preserve my battery life, as I used to (uninstall / install when needed) with 1.0.2. The problem is when I try to uninstall I get the following message - Error Main script execution failed!

    I've tried the Systems.app to switch it off but I am not sure that works with my set up. What I would like to ask is:

    How can I fix the Error message or how can I manually remove OpenSSH?

    Thanks...
    Did you get to solve this? I have the same problem.

 

 

Similar Threads

  1. Let my battery drain all the way...
    By iPhoneRob in forum General
    Replies: 0
    Last Post: 10-14-2009, 04:42 AM
  2. 3.0.1 battery drain
    By jimwilx1 in forum iPhone 3GS
    Replies: 9
    Last Post: 08-14-2009, 02:03 PM
  3. [OpenSSH Question] does Openssh consume more battery life
    By bob616 in forum Free Toolchain Software (Cydia App's)
    Replies: 19
    Last Post: 05-12-2008, 12:08 AM
  4. battery drain like crazy, openssh is off!!
    By elem3nt in forum iPhone "2G" (Rev. 1)
    Replies: 33
    Last Post: 10-26-2007, 01:08 AM
  5. Does SSH drain battery?
    By ixray in forum General
    Replies: 0
    Last Post: 09-20-2007, 03:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:52 AM.
twitter, follow us!