Page 1 of 1
ssh does not start at boot
Posted: Tue Feb 18, 2020 6:40 am
by learning wizard
HI there,
I am turning an old pc into a small home server using an antix 17 base 64 bit live persistent usb key. I installed openssh-server and tried to get it to run from the CC editing both the system tab (choose startup services) and the session tab (user desktop session), but still I have to start the service manually with sudo service ssh start. What am I missing?
Re: ssh does not start at boot
Posted: Tue Feb 18, 2020 6:45 am
by dolphin_oracle
You may need to tell the init system to start the server at boot.
update-rc.d openssh-server defaults
sudo update-rc.d openssh-server defaults
should work on mx and antiX. I just installed on MX anyway and it went thru ok.
**edited command based on Head-on-a-stick's correction post**
**edit**
you might still need to activate the server the first time manually, but it should come up on its own on reboot.
Re: ssh does not start at boot
Posted: Tue Feb 18, 2020 7:27 am
by Head_on_a_Stick
dolphin_oracle wrote: Tue Feb 18, 2020 6:45 am
update-rc.d openssh-server defaults
The init script provided by the openssh-server package is called
ssh and the update-rc.d(8) command doesn't seem to work (at least in the antiX-19 live environment), it just throws up insserv errors and doesn't activate the service (as shown by the symlinks in /etc/rc?.d/).
@OP: try
^ That seems to activate the service correctly (but I can't test with a reboot because I just have a live system).
Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 2:47 am
by learning wizard
thanks. I tried the solutions both from Head on a stick and dolphin oracle but neither seem to work. I tried them after starting ssh manually too.
Code: Select all
sudo update-rc.d openssh-server defaults
update-rc.d: error: initscript does not exist: /etc/init.d/openssh-server
Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 3:20 am
by JayM
How did you install openssh server?
Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 3:28 am
by learning wizard
Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 5:16 am
by learning wizard
eventually I installed the system on my old pc and from there ssh starts with no hassle at boot... maybe it's something dealing with persistency on the live system... should I consider as "solved" this tread?
Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 5:25 am
by JayM
You're trying to make openssh server start at boot on a live persistent USB not on an installed antiX system? Duh, so you said in your original post. I just didn't see that. (Never mind.)

Re: ssh does not start at boot
Posted: Wed Feb 19, 2020 7:13 am
by anticapitalista
Running live, try removing the
entry at the boot menu
Re: ssh does not start at boot
Posted: Mon Nov 30, 2020 3:49 pm
by carolus
anticapitalista wrote: Wed Feb 19, 2020 7:13 am
Running live, try removing the
entry at the boot menu
It works for me (antiX 19 persistent USB), but why? Now I can start the boot process, then walk to my office and log in remotely.
I presume that the bootcode is there for a reason so that removing it will have some cost.
I tried searching for "disable" and for "lx" in the list of boot codes, but with no hits, at
https://download.tuxfamily.org/antix/do ... xboot.html. Is there a more complete list of boot codes somewhere?
By the way, in my antiX the deleted code was not disable=lx but, if I remember correctly, disable=lxF.
EDIT 12/9/20: Sorry, I must have been careless in seaching for "disable". The answer is at the location referenced.
"disable=lx
Disable some startup services for faster booting and less RAM usage."
I presume lxF is a variant of lx.
Re: ssh does not start at boot
Posted: Mon Nov 30, 2020 3:57 pm
by Adrian
You also don't want to run it live if you don't set up a password for root and user, anybody would be able to log in to your machine using the "root" password. I think we had some guards for this situation (not sure of details) probably that's why is not running.