Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • RAC 11g with vmware Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Kill a session dynanically using execute immediate Oracle
  • Read CSV File using Python Python/PySpark
  • Another export with Query Oracle
  • Import and export statements Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • Unix command for system configuration Linux/Unix
  • Good links for x$ tables in oracle. Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle

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

  • cur_sql.sql Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • This is im telling Kishore Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • My Minimum Tuning Programs 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
  • How to remove blank lines using vi editor command Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix
  • How to check current redo log progress redo_progress.sql Oracle
  • Goldengate document from Porus Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Find Command Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme