The rexec
service, which is available with the rsh-server
package
and runs as a service through xinetd or separately as a systemd socket, should be disabled.
If using xinetd, set disable
to yes
in /etc/xinetd.d/rexec
.
The rexec
socket can be disabled with the following command:
$ sudo systemctl mask --now rexec.socket