How to setup rsh (even though you should be using ssh)

Let me start out by saying, I do not advocate rsh as it is insecure, however; I will post this nonetheless to help those in dire straights.

Also, I don't guarantee this will work for you but it did for me. If this breaks your setup, I will not be held responsible. Look before you leap :)
  1. Install these packages (either yum, apt-get, or rpm):
    xinetd
    rsh
    rsh-server

  2. Now run this:
    echo "rsh" >> /etc/securetty
    echo "rlogin" >> /etc/securetty

  3. In /etc/xinetd.d/rsh and /etc/xinetd.d/rlogin, change:
    disable = yes
    to
    disable = no

  4. Add promiscuous to line in /etc/pam.d/rsh and /etc/pam.d/rlogin like so:
    auth       required     pam_rhosts_auth.so promiscuous

  5. Start the daemon:
    /etc/init.d/xinetd.d start

  6. For a passwordless login setup, add the target hosts name in the following file on the source host:
    /root/.rhosts

2011 house projects

Here are some things we have done at the cabin this yr.