rsh - Remote Shell ==================== .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is rsh?** rsh (Remote Shell) is a network protocol and command-line utility that allows a user to execute shell commands on a remote Unix-based system without logging in interactively. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is rsh useful?** * Allows remote execution of commands on Unix/Linux systems. * Useful for scripting and automating tasks across multiple machines. * Lightweight and easy to use in trusted network environments. * Precedes more secure protocols like SSH. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How it works?** * The client connects to the remote server via TCP. * Authentication is often done using `.rhosts` files or hosts.equiv for trust-based access. * The client sends commands to the remote shell, which executes them and sends back the output. * Data, including commands and responses, are sent unencrypted. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is rsh used?** * Used in legacy Unix and Linux environments for remote command execution. * Common in older networks or internal trusted environments. * Largely replaced by SSH in modern systems due to security concerns. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer does this protocol belong to?** * rsh operates at the **Application Layer (Layer 7)**. * Uses TCP at the Transport Layer for reliable communication. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **IS rsh windows specific?** * No, rsh is not Windows-specific. * While originally designed for Unix-like systems, Windows clients for rsh exist via tools like Cygwin or PuTTY. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **IS rsh Linux Specific?** * No, rsh is not Linux-specific. * Available on many Unix-like operating systems including Linux, BSD, and Solaris. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which Transport Protocol is used by rsh?** * rsh uses **TCP** as its transport protocol. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which Port is used by rsh?** * rsh typically uses **TCP port 514**. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is rsh using Client server model?** * Yes, rsh uses the **client-server model**. * The **client** sends commands to the **rsh server** on the remote machine, which executes them and returns output. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`rsh Version&IEEE Details ` * :ref:`rsh Basic Setup on Ubuntu using IPv4 ` * :ref:`rsh Basic Setup on Ubuntu using IPv6 ` * :ref:`rsh Protocol Packet Details ` * :ref:`rsh Usecases ` * :ref:`rsh Basic Features ` * :ref:`Reference links ` .. _rsh_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _rsh_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _rsh_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _rsh_step5: .. tab-set:: .. tab-item:: rsh Version&RFC Details * rfc details .. _rsh_step18: .. tab-set:: .. tab-item:: rsh Basic Setup on Ubuntu using IPv4 * setup .. _rsh_step19: .. tab-set:: .. tab-item:: rsh Basic Setup on Ubuntu using IPv6 * setup .. _rsh_step6: .. tab-set:: .. tab-item:: rsh Protocol Packet Details * packet details .. _rsh_step7: .. tab-set:: .. tab-item:: rsh Usecases * usecases .. _rsh_step8: .. tab-set:: .. tab-item:: rsh Basic Features * features .. _rsh_step17: .. tab-set:: .. tab-item:: Reference links * Reference links