View Single Post
Posts: 32 | Thanked: 9 times | Joined on Nov 2009 @ Norway
#8
Originally Posted by z3phyr View Post
i want to stop the ssh server to possibly save some power and increase security

i learnt to root and "/etc/init.d/ssh stop" to stop the server. i know that works because it said ssh stop

then i tried "rm -f /etc/rc2.d/s55ssh" to stop it for autostarting. that worked because i tried to connect but couldnt.
It seems sshd is started by upstart so removing the rc2.d link won't work. I know little about upstart but sshd is started from /etc/event.d/sshd so it might be possible to change the exec line to a script :-
Code:
script
        if [ -f /etc/dont_start_ssh ]; then
                exit 1
        else
                exec /usr/sbin/sshd -D
        fi
end script
This is untested but I don't think it will cause any problems with booting the N900 itself, just sshd. Make a backup before trying though; oh and let us know how it goes.
 

The Following User Says Thank You to adrianp For This Useful Post: