Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Composite Index creation tip from Vivek Oracle
  • dbms_job.submit example Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • Updated LCK.SQL file. Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Ports used by Oracle Software Oracle
  • EXTPROC Oracle
  • Good Site for Oracle Internals Oracle
  • Zip and unzip with tar Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress

Configure ssh authentications for RAC

Posted on 04-Jan-2009 By Admin No Comments on Configure ssh authentications for RAC

Applies to:

Oracle Server – Enterprise Edition – Version: 10.1.0.2 to 11.1.0.6

Information in this document applies to any platform.

Reviewed 22-Oct-2008

Goal

This document will explain how to configure SSH, which is required to run a RAC installation. Following the instructions in the installation guide are also correct, but sometimes this will not work, although the reason for that isn’t clear. Therefore after some investigation it seems to be that the steps below will work too.

Solution

To configure SSH you need to perform the following steps on each node in the cluster.

$ cd $HOME

$ mkdir .ssh

$ chmod 700 .ssh

$ cd .ssh

$ ssh-keygen -t rsa

Now accept the default location for the key file

Enter and confirm a passphrase. (you can also press enter twice).

$ ssh-keygen -t dsa

Now accept the default location for the key file

Enter and confirm a passphrase. (you can also press enter twice).

$ cat *.pub > authorized_keys. (nodeX could be the nodename to differentiate files later)

Now do the same steps on the other nodes in the cluster.

When all those steps are done on the other nodes, start to copy the authorized_keys. to all the nodes into $HOME/.ssh/

For example if you have 4 nodes you will have after the copy in the .ssh 4 files with the name authorized_keys.

Then on EACH node continue the configuration of SSH by doing the following:

$ cd $HOME/.ssh

$ cat *.node* > authorized_keys

$ chmod 600 authorized_keys

To test that everything is working correct now execute the commands

$ ssh date

So on example in a 4 node environment:

$ ssh node1 date

$ ssh node2 date

$ ssh node3 date

$ ssh node4 date

Repeat this 4 times on each node, including the node itself. The nodeX is the hostname of the node.

The first time you will be asked to add the node to a file called ‘known_hosts’ this is correct and answer the question with ‘yes’. After that when correctly configured you must be able to get the date returned and you will not be prompted for a password.

Note: the above will work if during RSA and DSA configuration no password was provided. If you provide a password then you need to do 2 addition steps.

$ exec /usr/bin/ssh-agent $SHELL

$ /usr/bin/ssh-add

These statements will inform the ssh agent to add the keys to the shell used. So when a new shell is started you need to repeat the last to statements to make sure ssh is working properly.

ssh will not allow passwordless access if permissions on the home directory of the account you are using allow write access for everyone.

You will also see permission denied error when the permissions on $HOME are 777 or 775.

Disable banner (/etc/banner) on all cluster nodes when you

* run clusterverify (cluvfy, runcluvfy)

* install software

* patch the system

Oracle, RAC

Post navigation

Previous Post: 339939.1 Running Cluster Verification Utility to Diagnose Install Problems
Next Post: 10g RAC: Troubleshooting CRS Root.sh Problems

Related Posts

  • AWR license Oracle
  • USE_NL and INDEX hints example Oracle
  • All Hints for Oracle Databases Oracle
  • Insert cause enqueue locks Oracle
  • Rename Oracle Instance Name Oracle
  • Find Plan Hash value fphv.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find nth max and min. Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • pvm_pre_change.sql Oracle
  • Resolving RMAN Hung Jobs Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Jai Shree Ram Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • tblwopk.sql tablewopk.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme