[1] We have logserver as existing central monitoring server.
[2] need to establish other monitoring server same as logserver.
[3] so
login as oracle
copy ~/.ssh from logserver1 to dbmonitor.
on dbmonitor:
cd .ssh
cat id_dsa.pub id_rsa.pub > both_keys
then do the following for target servers. pls note that where ssh2 is installed the file will be ~/.ssh/authorized_keys2. Where ssh1 is installed the file will be ~/.ssh/authorized_keys.
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh keller2 “cat >> .ssh/authorized_keys2”
oracle@keller2’s password:
Permission denied, please try again.
oracle@keller2’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh keller2 “cat >> .ssh/authorized_keys”
oracle@keller2’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh keller4 “cat >> .ssh/authorized_keys”
oracle@keller4’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh keller4 “cat >> .ssh/authorized_keys”
oracle@keller4’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh liback “cat >> .ssh/authorized_keys2”
oracle@liback’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
==>cat both_keys | ssh liback “cat >> .ssh/authorized_keys”
oracle@liback’s password:
oracle@dbmonitor*-/export/home/oracle/.ssh
Then try to connect from dbmonitor to target box using ssh, it will not ask the password.