Scripting on vm startup(use systemctl enable)

I have used Cron before. I would like to have ssh enable by default when ever the virtual machine boots .

I usually use Systemctl start ssh.

Or this sudo systemctl enable ssh

Maybe there is a different between start and enable ?

Wait for it …

Yea there is a difference. ENABLE tells the services to start on reboot.

Start, starts the services immediately.

For Linux packages, I suppose I won’t be need to use cron jobs. Unless I want to make a custom shell script…