andyph666
|
2010-01-16
, 03:25
|
Posts: 138 |
Thanked: 8 times |
Joined on Dec 2009
|
#1
|
|
2010-01-16
, 08:17
|
Posts: 75 |
Thanked: 125 times |
Joined on Nov 2008
|
#2
|
sudo gainroot rm /etc/init.d/ssh exit
sudo gainroot /etc/init.d/ssh stop exit
|
2010-01-16
, 08:28
|
Posts: 68 |
Thanked: 24 times |
Joined on Jan 2010
|
#3
|
update-rc.d ssh remove
|
2010-01-30
, 18:54
|
Posts: 6 |
Thanked: 2 times |
Joined on Jan 2010
|
#4
|
|
2010-01-30
, 20:19
|
|
Posts: 455 |
Thanked: 782 times |
Joined on Nov 2009
@ Netherlands
|
#5
|
|
2010-01-30
, 21:19
|
Posts: 486 |
Thanked: 251 times |
Joined on Oct 2009
|
#6
|
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`.
initctl stop sshd
initctl start sshd
|
2010-01-30
, 21:36
|
Posts: 6 |
Thanked: 2 times |
Joined on Jan 2010
|
#7
|
Nothing on the n900 needs to be altered to stop and start sshd. maemo 5 uses upstart to control services. Configuration files are in /etc/event.d instead of /etc/init.d
To stop the sshd server daemon, as root, type:r
To restart a stopped sshd, root, type:Code:initctl stop sshd
Code:initctl start sshd
|
2010-02-06
, 18:53
|
Posts: 6 |
Thanked: 0 times |
Joined on Feb 2010
|
#8
|
|
2010-02-09
, 19:20
|
Posts: 6 |
Thanked: 2 times |
Joined on Jan 2010
|
#9
|
|
2010-02-11
, 22:54
|
Posts: 1 |
Thanked: 2 times |
Joined on Feb 2010
|
#10
|
thanks! great
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
#start on stopped rcS console output #respawn pre-start script if [ ! -d /var/run/sshd ] ; then mkdir /var/run/sshd chmod 755 /var/run/sshd fi end script exec /usr/sbin/sshd -D
The Following 2 Users Say Thank You to gmacchi For This Useful Post: | ||