![]() |
How to disable ssh on startup?
Hi there. Was wondering if its possible to disable openssh on startup? On my iphone it took a lot of battery so I'd prefer not to have it open. Also would make it more secure as I rarely have a need for it. Thanks for the help.
|
Re: How to disable ssh on startup?
It hasn't made any concievable difference to battery life on my n900 (and it shouldnt). sshd wont wake the cpu out of idle very often at all (unless it recieves a connection).
But, because you wanted to know, install gainroot then type: Code:
sudo gainroot Instead of breaking your openssh-server startup, heres a better idea: temporarily stop openssh so u can see how much extra battery time you get (there wont be a difference): Code:
sudo gainroot |
Re: How to disable ssh on startup?
Actually, as Maemo seems to be debian-based the proper way of changing what starts on boot would be:
Code:
update-rc.d ssh remove |
Re: How to disable ssh on startup?
hello
i have same problem but the previous posts aren't useful, it looks like n900 is not using rc scripts, if i do .... /etc/init.d/ssh stop the process is being killed but it keep respawn with new process ID. any idea how to disable the sshd at startup and use the init scripts instead? |
Re: How to disable ssh on startup?
You can create a file `sshd_not_to_be_run` at /etc/ssh and the deamon won't start automatically. Then whenever you want to run the service just rename / remove the file and call /etc/init.d/ssh start.
You can also add additional `force-start` option in the /etc/init.d/ssh by duplicating the `start` method and removing its first line (check_for_no_start) so you won't need to remove the file each time you want to start the service. edit: here you go: http://www.topflashers.com/maemo/misc/ssh . Overwrite the one in /etc/init.d with this one, and add /etc/ssh/sshd_not_to_be_run file and it will never start automatically. When you want to start it use `/etc/init.d/ssh force-start`. |
Re: How to disable ssh on startup?
Quote:
To stop the sshd server daemon, as root, type:r Code:
initctl stop sshd Code:
initctl start sshd |
Re: How to disable ssh on startup?
Quote:
now i'mn finally able to stop sshd ... and how about to configure to not start automatically at system boot? i just want to use it when i start it manually i didn't find this option in config file |
Re: How to disable ssh on startup?
Hi shaq, have you found any improvement in battery life after stopping sshd? Because i also think sshd is dropping down my battery level since i didn't have this problem before i installed ssh server.
|
Re: How to disable ssh on startup?
hey pernacentus, not yet, i need to stop it manually each time after reboot, but i'm afraid this is not the only application which eats up the battery, i can see sometime quite high cpu utilization by some other ( for me unknown ) system applications, is there any SW for logging the cpu utilization available for maemo ?
|
Re: How to disable ssh on startup?
Quote:
Code:
#start on stopped rcS |
All times are GMT. The time now is 13:57. |
vBulletin® Version 3.8.8