≡ Menu

Configure rsh so that is does not prompt for a password

Both rsh or rlogin prompt for a password. All you need to do is open /etc/hosts.equiv file on host system and add entries for all hosts you would like use without password .

This file list of hosts and users that are granted “trusted” r (rsh/rloging) command access to your system without supplying a password.

$ cat /etc/hosts.equiv



In above file job1, job2, job3 hosts can connect without a password.

Caution: R (rsh/rlogin) commands are very insecure if possible switch to secure shell (ssh). You can configure ssh so that is does not prompt for a password.

Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 4 comments… add one }
  • Diabolic Preacher March 14, 2009, 5:24 am

    hello Vivek,
    Could you please tell how do I turn on RSH on ubuntu, if its turned off. Need it temporarily.

  • art November 17, 2011, 11:01 pm

    doesnt work

    rsh xxx

  • sbaker January 20, 2014, 7:13 am

    Hello, and thank you much for the article!

    However as the other commenters have said, This doesn’t seem to work, or at least for me it does not work in SLES 11 sp2.

    i have checked /etc/pam.d/rsh (and rlogin) and that file does NOT list pam_rhosts_auth.so, however it does have pam_rhosts.so, which I set to sufficient per several other articles.

    I cannot determine how to install pam_rhosts_auth.so, otherwise I would have tried that.

    Any assistance would be highly appreciated!



  • ~Hasan January 30, 2015, 12:09 pm

    Hey, it work for me

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , ,