|
2009-12-19
, 10:40
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#2
|
The Following User Says Thank You to fnordianslip For This Useful Post: | ||
|
2009-12-19
, 10:57
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#3
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
|
2009-12-19
, 11:27
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#5
|
|
2009-12-19
, 12:33
|
Posts: 104 |
Thanked: 10 times |
Joined on Dec 2009
|
#6
|
z3phyr: Really sorry about that duff ln -s command... That was from one of my posts I think (I fixed it now) Too much cut and paste, I'm afraid.. I had just pasted in the output of ls -l on the link and meant to go back and turn it into the command, but only got halfway. Mea culpa!
I'm attaching my own /etc/init.d/ssh file (I renamed it ssh.txt so I could upload it)
It should be the same as what that command wiped out, so you could just put it in place and then run the
ln -s /etc/init.d/ssh /etc/rc2.d/s55ssh command (or whatver it was )
|
2009-12-19
, 13:11
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#7
|
The Following User Says Thank You to kwotski For This Useful Post: | ||
|
2009-12-19
, 15:20
|
Posts: 32 |
Thanked: 9 times |
Joined on Nov 2009
@ Norway
|
#8
|
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.
script if [ -f /etc/dont_start_ssh ]; then exit 1 else exec /usr/sbin/sshd -D fi end script
The Following User Says Thank You to adrianp For This Useful Post: | ||
|
2009-12-20
, 02:55
|
Posts: 104 |
Thanked: 10 times |
Joined on Dec 2009
|
#9
|
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 :-
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.Code:script if [ -f /etc/dont_start_ssh ]; then exit 1 else exec /usr/sbin/sshd -D fi end script
|
2009-12-20
, 07:05
|
Posts: 32 |
Thanked: 9 times |
Joined on Nov 2009
@ Norway
|
#10
|
last night i was playing with the "update-rc.d -f ssh remove" command. it removed some ssh entries. not too sure what that does, hope it don't cause any problems
where can i learn what the options means like the -f and -d etc.
update-rc.d - install and remove System-V style init script links
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.
and then finally i tried "ln -s /etc/rc2.d/s55ssh -> /etc/init.d/ssh" incase i wanted the autostart function back. dont know if that works because he said it would need a restart.
now i dont know if any of it works anymore because i don't get the ssh stop message when trying to stop it. and offcourse the server doesnt stop.
i tried restarting and trying it again but still don't work
could the last command i entered stuffed it up?
one more thing. my phone acted pretty strange when trying to type this. the browser would just dissappear when im almost finished typing or would go to a different page. i tried to type this 3 times now before giving up and type it on my computer... scary :S