Want to disable the password while running rsh command on solaris 10

Hi,After executing rsh command it is asking for a password. I want to login to a target machine with rsh command through the scripts which it shouldnot ask for a password. It will be appreciated if anyone can help me in solving out this issue?
[257 byte] By [RSHa] at [2007-11-27 8:42:15]
# 1
You probably want to ensure the there is a suitable .rhosts file or, better yet, look into implementing ssh.
SimonJMa at 2007-7-12 20:41:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Please type:

echo "+" > /.rhosts

or

echo "%host name of the machine you want to connect%" > /.rhosts

or please implement ssh solution:

Machine 1:

ssh-keygen 杢 rsa

(accept default folder and leave empty password)

scp id_rsa.pub root@%ip_Machine2%:/root/.ssh/authorized_keys

Machine 2:

ssh-keygen 杢 rsa

(accept default folder and leave empty password)

scp id_rsa.pub root@%ip_Machine1%:/root/.ssh/authorized_keys

Regards,

Daniel

nagardda at 2007-7-12 20:41:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...