2.1.17 Ensure rsh server is not enabled - rexec.socket status

Information

The Berkeley rsh-server ( rsh , rlogin , rexec ) package contains legacy services that exchange credentials in clear-text.

Rationale:

These legacy services contain numerous security exposures and have been replaced with the more secure SSH package.

Solution

Run the following commands to disable rsh , rlogin , and rexec :

# systemctl disable rsh.socket
# systemctl disable rlogin.socket
# systemctl disable rexec.socket

# systemctl stop rsh.socket
# systemctl stop rlogin.socket
# systemctl stop rexec.socket

See Also

https://workbench.cisecurity.org/files/2449

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-4, CSCv7|9.2

Plugin: Unix

Control ID: a485fb198149cf275b9e1945b3fde27f2c87277b28b04c3633d1bc88737720c5