Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Implementation of key based authentications Linux/Unix
  • proper cpu stats Linux/Unix
  • Changing unix system clock when Oracle database is running. Oracle
  • dbinv.sql Oracle
  • ipcs -l Linux/Unix
  • create user with unlimited quota Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Difference between SYNC and AFFIRM Oracle
  • create database link syntax Oracle
  • Rename Oracle Instance Name Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • sid_wise_sql.sql 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

  • normal maintenance for exp-imp and renaming table Oracle
  • find_string_in_database.sql 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
  • How to find password change date for user Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • backspace in SQL Plus not working then..? Linux/Unix
  • import-export with multiple files Oracle
  • standard Monitoring – 1 Oracle
  • V$transaction notes for finding XID composition. Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Remove duplicate rows from table Oracle
  • Find Command Linux/Unix
  • chk_space_SID.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme