z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RHOSTS.DATA data set

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

The user_id.RHOSTS.DATA data set provides you with an alternative to specifying RSH parameters user_id and password when you invoke the RSH command.

The user_id.RHOSTS.DATA data set contains one or more entries. Each entry consists of two parts, a fully qualified name of a local host and a local userid associated with that local host. The local userid is case sensitive.

The user ID specified in user_id.RHOSTS.DATA can be either the user ID you would otherwise specify as an RSH parameter or your logon ID on your local host.

If your user ID is the same at both the local and remote hosts, use this common ID to create RHOSTS.DATA. In this case, you do not need to include the user_id/password parameter on the RSH command, as shown in the following example:
   rsh mvsone lista
If your user ID at the remote host is different from your user ID at the local host, use the user ID of the remote host to create RHOSTS.DATA. In this case, you can invoke the RSH command without the password, as follows:
   rsh -l user28 mvsone lista
If you do not create the RHOSTS.DATA data set on the remote host, you must specify both the user ID and the password with the RSH command, as shown in the following example:
   rsh -l user28/abcdef mvsone lista
The host names in the following examples are the official, fully qualified names of local hosts from which you want to run RSH. The user IDs are the logon IDs for those local hosts. Nicknames are not allowed.
local.host.name user_id
mvsthree.raleigh.ibm.com user30
mvsthree.raleigh.ibm.com user31
mvstfour.raleigh.ibm.com user30
 
Tip: The RSH server code obtains the remote host name by resolving the remote IP address into a host name. If the remote host connects using a link-local address, then the remote host name that is generated by the resolver can have the format hostname%scope. Adding scope information to the appropriate RHOSTS.DATA remote host definitions results in a more efficient search for a matching remote host name. See the support for scope information in the z/OS Communications Server: IPv6 Network and Application Design Guide for details about including scope information on configured host names.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).