I have openssh-server installed but I'd like to sometimes leave the sshd service off by default at boot, and only start it from the terminal as needed.
Based on the the advice of many other questions, enabling and disabling the service at boot should be simple on my systemd using 16.04 distro:
$sudo systemctl disable sshd.service
That seems to work. However, I can no longer enable the service at boot after that:
$sudo systemctl enable sshd.service
Failed to execute operation: No such file or directory
Even un-installing and re-installing openssh-server doesn't fix it, but a purge does.
How do I re-enable sshd at boot once I've disabled it via systemd?
Note that even in this messed up state I can still manually start and stop the service via service ssh[start|stop]`.