How To Install rsh on Fedora 34

rsh is Clients for remote access commands (rsh, rlogin, rcp)

Introduction

In this tutorial we learn how to install rsh on Fedora 34.

What is rsh

The rsh 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 clients needed for all of these services. The rsh package should be installed to enable remote access to other machines

We can use yum or dnf to install rsh on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install rsh.

Install rsh on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install rsh

Install rsh on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install rsh

How To Uninstall rsh on Fedora 34

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

sudo dnf remove rsh

rsh Package Contents on Fedora 34

/usr/bin/rcp
/usr/bin/rexec
/usr/bin/rlogin
/usr/bin/rsh
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/99e8c95d86143ca93cb3fe9da49f0c34dd7ab9
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/9cf1a9b4dd4315c61fc3db248de3e4a38cdd55
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/ccedea717aa5a4be34840a337ca3616dfa569d
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/0049e4fb82cdeeab7025ffb05b64f13674edfe
/usr/share/doc/rsh
/usr/share/doc/rsh/BUGS
/usr/share/doc/rsh/README
/usr/share/man/man1/rcp.1.gz
/usr/share/man/man1/rexec.1.gz
/usr/share/man/man1/rlogin.1.gz
/usr/share/man/man1/rsh.1.gz

References

Summary

In this tutorial we learn how to install rsh on Fedora 34 using yum and dnf.