

If we plan to use sshd over xinetd in the long term, we can also disable the systemd service for it, to prevent it from starting at boot time: systemctl disable sshdĪnd optionaly enable startup at boot time: # systemctl enable xinetd


This is the step where you will be disconnected if you are logged in via ssh. If the sshd server is running on the system, we need to stop it, otherwise xinetd can’t bind to TCP port 22.With a text editor like vi or nano, let’s create a new text file /etc/xinetd.d/ssh with the following content (note that the new line after the service name is mandatory): Xinetd comes with a default configuration file /etc/nf, as well as some neat examples in the /etc/xinetd.d/ directory, all disabled by default.
