Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: eno on December 30, 2014, 04:12:18 PM
-
I installed openssh and have added
/usr/local/etc/ssh
to .filetool.lst
and have /usr/local/etc/init.d/openssh
start in bootlocal.sh
but it never starts the openssh daemon when I boot up. Any ideas how to troubleshoot?
-
hi eno,
.filetool.lst entries should not have the leading "/"
ie. /usr/local/etc/ssh -> usr/local/etc/ssh
and I assume you did a filetool.sh -b
regards
Greg
-
Excerpt from /usr/local/etc/init.d/openssh :
case $1 in
status) pidof sshd;;
start) start;;
stop) stop;;
restart) restart;;
keygen) keygen;;
*) echo "Usage $0 {start|stop|restart|keygen}"; exit 1
esac
...looks like you need to invoke it with the "start" argument, otherwise it will just (try to) display some help text and then quit.
/usr/local/etc/init.d/openssh start
Also if you don't back up your keys, it will generate new ones on every reboot, which can be annoying.
Edit 2014-12-29 15:40 : That is, assuming these things work the same on Pi as on x86.
-
Actually I did have the start argument in bootlocal.
But I forgot that entries in .filetool.lst should not have leading entries so Im thinking that's probably the problem. I will have to go back and test that.
-
OK, went back and removing leading slashes. Ran filetool.sh -b and rebooted but I still dont see sshd running after its finished booting. I do see the process running bootlocal.sh, it just doesn't appear to run the start command I put in there. The extension is mounted correctly (i.e. I see /usr/local/etc/init.d/openssh is a sym link to /tmp/tcloop/openssh/usr/local/etc/init.d/openssh which is mounted).
-
Yoo did not tell which version you are playing with.
Also, there is an image available with openssh preinstalled. Maybe worth to try.
-
Im running latest piCore beta (I have another RPi with an older beta where this openssh setup works). I tried comparing devices but did not see any differences. I will try reinstalling just to get to a known baseline before testing again.
-
Try 6.0rc1
-
I reinstalled before reading your reply so Im running beta3 but everything is working now anyway (perhaps I missed a step the first time round). Thanks for everyone's help.