When testing with spread through the lxd-backend, it works fine against focal images, however when switching to jammy images which has a different configuration of openssh-server, the default method of just killing the ssh daemon results in spread not being able to connect through ssh after executing the commands in tuneSsh(). It seems the ssh daemon does not restart again.
Instead of killing the daemon, I changed the command to reload the daemon instead. This results in spread being able to correctly connect to ssh again.
When testing with spread through the lxd-backend, it works fine against focal images, however when switching to jammy images which has a different configuration of openssh-server, the default method of just killing the ssh daemon results in spread not being able to connect through ssh after executing the commands in tuneSsh(). It seems the ssh daemon does not restart again.
Instead of killing the daemon, I changed the command to reload the daemon instead. This results in spread being able to correctly connect to ssh again.