How To Configure RSH – Remote Shell

1) Enable rsh
#vim /etc/xinetd.d/rsh
Replace
disable=yes into disable=no
wait = yes into wait=no
2) Enable rexec
#vim /etc/xinetd.d/rexec
Replace
disable=yes into disable=no
wait=yes into disable=no
3)Enable rlogin
#vim /etc/xinetd.d/rlogin
disable=yes into disable=no
wait=yes into wait=no
4) Enable securetty
Add rsh,rlogin.rexec into the /etc/securetty
/etc/securetty
Enable the service for login with tty devices.
5) PAM - Pluggable Authentication Module.
Purpose
1) Authentication condition.
2) Define the Session Module.
#vim /etc/pam.d/rsh
Replace
auth required pam_rhosts.so into
auth sufficient pam_rhosts.so

6) Add the trusted Host List
#vim /root/.rhosts
List of hosts Login without password or server admin granted "TRUSTED"
rsh/rlogin Remote access without supplying Password.

Finally trying from the Client Machine, using rsh,rlogin,to verify rsh- Remote shell.

Related post