U can use rsh to run commands on another server without having to enter password.U can do so by entering the hostname and user-id entry in /.rhosts and /etc/hosts.equiv files of both servers as
hostname [username]
Then from one server ,say serverA ,run the command as:-
serverA#rsh serverB who (This command runs and displays the users connected on serverB)
See, if u are running some command from one server to another in a script without having to enter a password then u have got to have a trusted host otherwise u will have to telnet to the box everytime and supply a password.U can ftp files from one server to other without a trusted host in a script but not with telnet.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.