![]() |
Re: disabling ssh server on n900
Quote:
also whats the autostart. is that it restarting on reboot? |
Re: disabling ssh server on n900
Quote:
im not too sure if its that battery hungry, havn't really noticed. but the autostart is it automatically runs again once someone tries to connect to it. for paranoid people that are afraid of unauthorized access |
Re: disabling ssh server on n900
Funnily enough, the server doesn't seem to stop for me, even though it returns "service stopped"; ssh localhost still lets me in.
I suppose I should do some research and file a bug report. Some day... |
Re: disabling ssh server on n900
Quote:
Code:
ps -ef | grep sshd |
Re: disabling ssh server on n900
Quote:
i always thought SSH was fairly secure. did i miss something |
Re: disabling ssh server on n900
Quote:
Code:
HHGTTG:/etc/event.d# cat sshd I'm not used to upstart yet, how am i supposed to disable something without edition the main scripts for a hack? :) |
Re: disabling ssh server on n900
Quote:
i think you didnt stop the autostart. the server will automatically run again once someone tries to establish a connection to it. im pretty sure "rm -f /etc/rc2.d/s55ssh" worked for me the first time before i messed up with the ln command. if that doesnt work then guess you'll have to try that script |
Re: disabling ssh server on n900
Quote:
/etc/rc0.d/K20ssh /etc/rc1.d/K20ssh /etc/rc.2.d/S55ssh /etc/rc.3.d/S55ssh /etc/rc.4.d/S55ssh /etc/rc.5.d/S55ssh /etc/rc6.d/K20ssh Which meant (K)ill ssh at runlevel 0,1 and 6. (S)tart ssh at runlevel 2, 3, 4 and 5). The 55/20 is the order at which ssh is started/stopped (a start script with S40 will be executed before S41, and the same goes for K scripts)... :) Maemo is apparently using runlevel 2 as "GUI" runlevel (normally it's 5), and 0 is shutdown, 6 is restart (don't mind about the rest). ;) http://en.wikipedia.org/wiki/Runlevel They can be added again using this: Code:
update-rc.d ssh start 55 2 3 4 5 . stop 20 0 1 6 . Quote:
EXAMPLES Insert links using the defaults: update-rc.d foobar defaults The equivalent dependency header would have start and stop dependencies on $remote_fs and $syslog, and start in runlevels 2-5 and stop in runlevels 0, 1 and 6. Equivalent command using explicit argument sets: update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 . More typical command using explicit argument sets: update-rc.d foobar start 30 2 3 4 5 . stop 70 0 1 6 . Insert links at default runlevels when B requires A update-rc.d script_for_A defaults 80 20 update-rc.d script_for_B defaults 90 10 Insert a link to a service that (presumably) will not be needed by any other daemon update-rc.d top_level_app defaults 98 02 Insert links for a script that requires services that start/stop at sequence number 20 update-rc.d script_depends_on_svc20 defaults 21 19 Remove all links for a script (assuming foobar has been deleted already): update-rc.d foobar remove Example of disabling a service: update-rc.d -f foobar remove update-rc.d foobar stop 20 2 3 4 5 . Example of a command for installing a system initialization-and-shut‐ down script: update-rc.d foobar start 45 S . stop 31 0 6 . Example of a command for disabling a system initialization-and-shutdown script: update-rc.d -f foobar remove update-rc.d foobar stop 45 S . |
Re: disabling ssh server on n900
Quote:
I don't know why Debian just doesn't use BSD style start up rather than SysV if its only going to use one main runlevel. |
Re: disabling ssh server on n900
Quote:
|
All times are GMT. The time now is 17:46. |
vBulletin® Version 3.8.8