How To Install rsh-server.x86_64 on Amazon Linux 2

In this tutorial we learn how to install rsh-server.x86_64 in Amazon Linux 2. rsh-server.x86_64 is Servers for remote access commands (rsh, rlogin, rcp)

Introduction

In this tutorial we learn how to install rsh-server.x86_64 on Amazon Linux 2.

What is rsh-server.x86_64

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

Install rsh-server.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rsh-server.x86_64

How To Uninstall rsh-server.x86_64 on Amazon Linux 2

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

sudo yum remove rsh-server.x86_64

rsh-server.x86_64 Package Contents on Amazon Linux 2

/etc/pam.d/rexec
/etc/pam.d/rlogin
/etc/pam.d/rsh
/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.x86_64 on Amazon Linux 2 using yum.