(Latest revision 01/04/2001)

HOW TO SET UP YOUR RSH


First of all you need to have a .rhosts file in your home directory that allows you to execute commands from a remote host. Make a file like the one shown below, except replace "john" with your own user name. Name the file .rhosts (note that the first character is a period) and put the file in your home directory.


altair.csustan.edu john
capella.csustan.edu john
castor.csustan.edu john
pollux.csustan.edu john
saiph.csustan.edu john
soleil.csustan.edu john
spica.csustan.edu john
regulus.csustan.edu john
rigel.csustan.edu john
vega.csustan.edu john
zaurak.csustan.edu john

Here is an example of the kind of thing you can do now. Make a script like this one, and when you execute it, it will tell you who is currently logged in on the indicated list of hosts.

echo "ALTAIR:"
rsh altair who
echo  "CAPELLA:"
rsh capella who
echo  "CASTOR:"
rsh castor who
echo  "POLLUX:"
rsh pollux who
echo  "SAIPH:"
rsh saiph who
echo  "SOLEIL:"
rsh soleil who
echo  "SPICA:"
rsh spica who
echo  "REGULUS:"
rsh regulus who
echo  "RIGEL:"
rsh rigel who
echo  "VEGA:"
rsh vega who
echo  "ZAURAK:"
rsh zaurak who