How To Install rsh-server on Rocky Linux 8

In this tutorial we learn how to install rsh-server on Rocky Linux 8. rsh-server is Servers for remote access commands (rsh, rlogin, rcp)

Introduction

In this tutorial we learn how to install rsh-server on Rocky Linux 8.

What is rsh-server

The rsh-server package contains a set of programs which allow users to run commands on remote machines, login to other machines and copy files between machines (rsh, rlogin and rcp). All three of these commands use rhosts style authentication. This package contains the servers needed for all of these services. It also contains a server for rexec, an alternate method of executing remote commands. All of these servers are run by systemd and configured using systemd units and PAM. The rsh-server package should be installed to enable remote access from other machines

We can use yum or dnf to install rsh-server on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rsh-server.

Install rsh-server on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rsh-server using dnf by running the following command:

sudo dnf -y install rsh-server

Install rsh-server on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rsh-server using yum by running the following command:

sudo yum -y install rsh-server

How To Uninstall rsh-server on Rocky Linux 8

To uninstall only the rsh-server package we can use the following command:

sudo dnf remove rsh-server

rsh-server Package Contents on Rocky Linux 8

/etc/pam.d/rexec
/etc/pam.d/rlogin
/etc/pam.d/rsh
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/6090be78d59af87ff2a306793771b7298db6b4
/usr/lib/.build-id/70
/usr/lib/.build-id/70/20834a7796a3748a227121987a4e201db73520
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/ab098c5e67569b2feeb6970a7347f5ea0c6cb7
/usr/lib/systemd/system/rexec.socket
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/rlogin.socket
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/rsh.socket
/usr/lib/systemd/system/[email protected]
/usr/sbin/in.rexecd
/usr/sbin/in.rlogind
/usr/sbin/in.rshd
/usr/share/man/man8/in.rexecd.8.gz
/usr/share/man/man8/in.rlogind.8.gz
/usr/share/man/man8/in.rshd.8.gz
/usr/share/man/man8/rexecd.8.gz
/usr/share/man/man8/rlogind.8.gz
/usr/share/man/man8/rshd.8.gz

References

Summary

In this tutorial we learn how to install rsh-server on Rocky Linux 8 using yum and dnf.