Troubleshooting guide

35
Special Procedures
Special Procedure D, Getting rsh to Work Successfully on a Remote Node
Use this procedure if the rsh command reports an error message:
Step 1 On the distribution node, examine the file /etc/hosts to verify that there is an entry for
remote-node in it. You can use the grep command for this:
bash# grep
remote-node
/usr/etc/hosts
If there is no entry for remote-node, create a backup copy of the /usr/etc/hosts file and
then create an entry for remote-node in /usr/etc/hosts:
bash# cp /usr/etc/hosts /usr/etc/hosts.bak
bash# echo ”
Primary_IP_address remote-node
” >> /usr/etc/hosts
Enter the name of the remote node in place of remote-node and the IP address of the
remote node in place of Primary_IP_address. (You can use the vi editor in place of the
echo command. See the LightStream 2020 NP O/S Reference Manual for information
about the vi editor.)
Note Be sure you enter the redirect operator twice, with no space (>>). If you enter it only once
(>), you will overwrite the existing file rather than appending to it. If you make a mistake, enter the
command cp /usr/etc/hosts.bak /usr/etc/hosts to recover the original file.
If you see the error message “Connection Timed Out,” the remote node or a link to it is
down. Refer to the chapter entitled “Troubleshooting Procedures” in the LightStream
2020 Network Administration Guide for Release 2.0. When the problem is corrected, go
back to the beginning of this step.
If you see the error message “Permission Denied” or any other message, ignore it and
continue to Step 2.
Step 2 Make a telnet connection to remotenode and log in.
Step 3 Verify that the .rhosts file is a read-only file for group and world:
bash# ls -l /.rhosts
-rw-r--r-- 1 root 71 Aug 1 14:54 /.rhosts
If any value other than -rw-r--r-- appears at the beginning of the ls output, enter the
following command:
bash# chmod 644 /.rhosts
Step 4 Examine the file /.rhosts to see if it includes an entry for distribution-node. Use the
following command (enter the name of the distribution node in place of distribution-node):
bash# grep
distribution-node
/.rhosts
Step 5 If the entry for distribution-node is not displayed, edit the file /.rhosts, adding to it a line
consisting of the name of the distribution node followed by the word root (enter the name
of the distribution node in place of distribution-node):
bash# cp /.rhosts /.rhosts.bak
bash# echo ”
distribution-node
root” >> /.rhosts
(You can use the vi editor in place of the echo command. See the LightStream 2020 NP O/S
Reference Manual for information about the vi editor.)