Knowledge Base Ask Cody Resources



 
I am unable to make a RSHELL or REXEC connection using the RLIB and RCOPY ActiveX or DLL.
In order to be able to connect using RLIB (RSHELL & REXEC) you must make the PC running RLIB client, a trusted host on the Unix machine that you are trying to connect.

Here is an example of how to make your PC a Trusted Host.

Assuming you are trying to connect to a UNIX system called unix1.mydomain.com (192.0.0.1) and your pc is called mypc.mydomain.com (192.0.0.3) you must update the following files to be able to use Rexec, Rshell or Rcopy successfully:

Add the following entries in /etc/hosts file on the Unix system called unix1.mydomain.com:

192.0.0.3 mypc
mypc.mydomain.com

Add the following entries in the /etc/hosts.equiv file:


mypc
mypc.mydomain.com

Updating the /etc/hosts file allows a reference of the remote host by name. In some cases this file may NOT be read at all. If this is your case, you will have to update the appropriate hosts database file on that system. For example if the host uses a name server you will have to modify the name server's database to achieve the desired result.

If on the other hand you need to run Rcopy between two UNIX systems, you will need to do all of the above plus, when running the Rcopy command, both UNIX systems must have the other system defined in the hosts file and hosts.equiv files. So if your second system is called unix2.mydomain.com, add the following entry in /etc/hosts file

192.0.0.1 unix1
unix1.mydomain.com
192.0.0.3 mypc mypc.mydomain.com

Add the following entries in the /etc/hosts.equiv file:

unix1
unix1.mydomain.com
mypc
mypc.mydomain.com

In this case you will also need to add the information for unix2.mydomain.com to the hosts and hosts.equiv files on the unix1.mydomain.com system.





12/22/2024   Legal notices | PRIVACY Policy |