1. When configuring the host trust relationship, you need to add the IP of the host to be trusted in the two host/etc/hosts files, assuming there are 2 hosts (192.168.8.190 aix190,192.168.8.191 aix191), the 191 host configuration is as follows
192.168.8.190 aix190
2. If the system is configured with DNS, you need to go to the/etc/resolv.conf file to view the resolution server, and check that the domain name server is working properly, if it is not working, you need to delete/etc/resolv.conf this file
3. Create a new user with the same user name on the host on which you want to configure the trust relationship (tentative test)
4. In 191 of the host/ETC/HOSTS.EQUIV file configured to trust the host information, and/ETC/HOSTS.EQUIV file permissions must be 600, otherwise you will be prompted "Permission denied"
In the/etc/hosts.equiv file, the host level trust is configured, theroot user will also be denied (AIX default policy), need to configure $home/.rhosts to be able to password-free login
Format:
aix190 Test--trust aix190 user test on this console
Format Description:
aix190--trust aix190 this console
+--Trust all users on all hosts
aix190 +--trust aix190 All users on this host
+ Test--trust the user test on all hosts
-aix190--Refuse to aix191 this host
Aix190-test--Deny aix191 user test on this console
5. Under the test user's host directory, configure the following information in the file $home/.rhosts (the recommended file permission is 600)
Format:
aix190 Test--trust aix190 user test on this console
Format Description:
aix190--trust aix190 this console
+--Trust all users on all hosts
aix190 +--trust aix190 All users on this host
+ Test--trust the user test on all hosts
-aix190--Refuse to aix191 this host
Aix190-test--Deny aix191 user test on this console
6. Make the same configuration process on another host (aix190).
7. You can use the following command to test
RSH aix190 Date
If the system date is returned, the configuration succeeds.
AIX Host Trust Relationship Configuration