As you see in "status", the actual name of that is "ssh.service", and "sshd" is just an Alias= name. As several units can have the same alias (e. g. in the case of "display-manager.service"), it is deliberate that you cannot enable aliases, but have to use the actual service name.
** Summary changed: - systemd error when enabling a service that is already started + systemctl enable does not enable alias names ** Changed in: systemd (Ubuntu) Importance: Undecided => Low ** Changed in: systemd (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1419318 Title: systemctl enable does not enable alias names Status in systemd package in Ubuntu: Won't Fix Bug description: to reproduce; 1.sudo systemctl start sshd.service 2.sudo systemctl status sshd.service (shows enabled) 3.sudo systemctl enable sshd.service - errors with "Failed to execute operation: No such file or directory" Expected behavior would be message that says the service is enabled. Using Lubuntu 15.04 daily build in a VM. systemd 218-7. ssh service does work after being started and persists after reboot. Expected behavior for starting a service without enabling it is that the service would not persist after reboot. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1419318/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp