By: David Rincon

Oracle requires ssh to be configured so to allow logins between cluster nodes without passwords or pass phrases. If this presents a security risk then an ssh agent must be installed in order to provide secured connections via password and pass phrase authentication. This section only describes ssh configuration using rsa keys. As the oracle software owner login to each server and perform the following steps :

  1. From the /home/oracle directory execute ssh-keygen –t rsa. Simply hit enter and take the default value for the id_rsa.pub file location, do not supply a password or pass phrase at the individual prompts. Ssh-keygen will generate the id_rsa.pub file into a hidden directory (.ssh), if the directory does not exist it will be automatically created. Perform this step on all cluster nodes.
  2. On each cluster node copy the contents of the id_rsa.pub into the /home/oracle/.ssh/authorized_keys file. Copy the id_rsa.pub file into NODE1’s authorized_keys file, NODE2’s, NODE3’s and so on. Repeat this process on NODE2 by copying NODE2’s id_rsa.pub file into it’s authorized keys and then into NODE1’s and NODE3’s authorized_keys file.

SSH public key propagation schema. Copy the contents of each nodes’ id_rsa.pub file into each nodes authorized_keys file. Remember to copy the id_rsa.pub into
the source node itself. The following figure illustrates the process of enabling ssh public keys across a three node cluster.

creating_password_less_ssh_login

About the Author: David Rincon

David Rincon, with a journey beginning in 1992, has dedicated over three decades to Oracle technologies. As the Founder and Managing Partner of Cornerstone Data Systems, INC., David and his team prioritize understanding their clients' needs, aiming to maximize the value of their technology investments. Prior to Cornerstone, David established The DBA Group, LLC, an Oracle-focused firm which was later acquired by Zanett in 2007, a NASDAQ-listed company subsequently absorbed by KPMG. Apart from his business ventures, David shared his expertise as a consultant instructor for Oracle University, guiding many on the Oracle DBA Masters Curriculum. Specializing in areas such as Oracle DBA, Oracle RAC, and Oracle Enterprise Manager Grid Control, David also holds several Oracle certifications, testament to his commitment to the field. Through his endeavors, David Rincon has quietly and consistently contributed to the Oracle community, helping organizations navigate their technology journeys.

Share This Story, Choose Your Platform!

Start The Conversation Today!

  • Schedule Your Consultation
  • Enjoy a Personalized Strategy Session
  • Level-Up Your IT

NEXT STEPS – (888)-429-5322