So I've managed to create a custom ISO using a preseed file that isntalls the OS automatically, all works fine BUT the isntallation of the openssh-server package...I'm not what else to do.
On my preseed file I have the following lines:
#Add package d-i pkgsel/include string openssh-server build-essential
however when I login,the package has not been installed. I also need to enable to login with root, for other purpuses so I need to modify the sshd_config file, I have tried the following two options also but I guess they don't work because the openssh-server package doesnt install on the first place:
ubiquity ubiquity/success_command string sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
d-i preseed/late_command string sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
What is the best way to first, add the ssh server package? and then modify the sshd_config file? so when the OS boots the ssh service is started and running