How To Install rsh-server on CentOS 7

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

Introduction

In this tutorial we learn how to install rsh-server on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rsh-server.

Install rsh-server on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install rsh-server

Install rsh-server on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install rsh-server

How To Uninstall rsh-server on CentOS 7

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

sudo dnf remove rsh-server

References

Summary

In this tutorial we learn how to install rsh-server on CentOS 7 using yum and dnf.