Having a service start automatically in debian linux

update-rc.d ssh enable

or

update-rc.d apache2 enable

This will have the ssh service or apache2 service start up on boot up.