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

Output:

job1.ha1.nixcraft.com
job2.ha1.nixcraft.com
job3.ha1.nixcraft.com

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.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.