Hello,
I try to establish a trusted connection between two servers without success.
Server 1 - configuration
$INFORMIXSERVER er1
Hostname ids-er1
IP 10.0.50.32
/etc/hosts 10.0.50.32 ids-er1
10.0.50.33 ids-er2
$INFORMIXDIR/etc/sqlhosts
er1_shm onipcshm ids-er1 er1
g_er1 group - - i=1
er1 onsoctcp ids-er1 sqlexec g=g_er1
g_er2 group - - i=2
er2 onsoctcp ids-er2 sqlexec g=g_er2
Server 1 – trusted connection files
ids-er1:/IDS/informix$ll etc/hosts.equiv
-rw-------. 1 informix informix 9 Feb 27 15:03 etc/hosts.equiv
ids-er1:/IDS/informix$cat etc/hosts.equiv
ids-er2
ids-er1:/IDS/informix$ll .rhosts
-rw-------. 1 informix informix 8 Feb 27 15:08 .rhosts
ids-er1:/IDS/informix$cat .rhosts
ids-er2
ids-er1:/IDS/informix$ll /etc/hosts.equiv
-rw-------. 1 root root 17 Feb 27 14:47 /etc/hosts.equiv
[root@ids-er1 ~]# cat /etc/hosts.equiv
ids-er2 informix
etc/onconfig
REMOTE_SERVER_CFG ERtrust
ids-er1:/IDS/informix$ll etc/ERtrust
-rw-------. 1 informix informix 17 Feb 28 08:27 etc/ERtrust
ids-er1:/IDS/informix$cat etc/ERtrust
ids-er2 informix
Server 2 - configuration
$INFORMIXSERVER er2
Hostname ids-er2
IP 10.0.50.33
/etc/hosts 10.0.50.33 ids-er2
10.0.50.32 ids-er1
$INFORMIXDIR/etc/sqlhosts
er2_shm onipcshm ids-er2 er2
g_er2 group - - i=2
er2 onsoctcp ids-er2 sqlexec g=g_er2
g_er1 group - - i=1
er1 onsoctcp ids-er1 sqlexec g=g_er1
Server 2 – trusted connection files
ids-er2:/IDS/informix$ll etc/hosts.equiv
-rw-------. 1 informix informix 8 Feb 27 15:03 etc/hosts.equiv
ids-er2:/IDS/informix$cat etc/hosts.equiv
ids-er1
ids-er2:/IDS/informix$ll .rhosts
-rw-------. 1 informix informix 8 Feb 27 15:09 .rhosts
ids-er2:/IDS/informix$cat .rhosts
ids-er1
ids-er2:/IDS/informix$ll /etc/hosts.equiv
-rw-------. 1 root root 17 Feb 27 14:47 /etc/hosts.equiv
[root@ids-er2 ~]# cat /etc/hosts.equiv
ids-er1 informix
etc/onconfig
REMOTE_SERVER_CFG ERtrust
ids-er2:/IDS/informix$ll etc/ERtrust
-rw-------. 1 informix informix 17 Feb 28 08:28 etc/ERtrust
ids-er2:/IDS/informix$cat etc/ERtrust
ids-er1 informix
I added the files one by one.
After every files I restart Informix (also reboot the system)
On all files I tried with hostname or hostname + username
But nothing helps, I can from dbaccess connect the remote db (both directions), but I have to give password.
What I did wrong?
Thanks
------------------------------
Samuel
------------------------------
#Informix