1

I just downloaded a virtual appliance built on Debian and went to enable sshd but saw this:

enter image description here

What is the difference between ssh.service and [email protected] and where is sshd? I checked and openssh-server is installed.

I more familiar with centos so I'm guess Debian calls the daemon ssh but redhat calls it sshd?

1 Answer 1

1

The first one is traditional sshd service, the other is socket-activated sshd. You can find more by investigation of the unit file itself: /lib/systemd/system/[email protected] and /lib/systemd/system/ssh.socket (on Debian, on Fedora and RHEL, prepend /usr/).

About the difference, it is just naming. It must call also sshd binary as CentOS.

For further reading, in Red Hat bugzilla is described the creation of such "service" exactly for ssh (beware of the naming, Debian uses ssh instead of sshd, probably everywhere).

1
  • The services are in /lib/systemd/system/ for both Debian and Ubuntu (at least as of Debian 9 and Ubuntu 16). Sep 11, 2017 at 16:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .