How To Install rsh-server on CentOS 8
Introduction
In this tutorial we learn how to install rsh-server
on CentOS 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the rsh-server
package we can use the following command:
sudo dnf remove rsh-server
rsh-server Package Contents on CentOS 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 CentOS 8 using yum and dnf.