This forum is currently locked. You can't register or post questions at this time. (read more)

Problem inSSH configuration in Grid Installation for cluster

All posts relating to Oracle database administration.

Moderator: Tim...

adda.road@yahoo.com
Senior Member
Posts: 143
Joined: Thu Dec 08, 2011 12:33 am

Problem inSSH configuration in Grid Installation for cluster

Postby adda.road@yahoo.com » Sat Oct 13, 2012 3:44 am

Hi Tim,

I am using Linux 5.6 O.S and Oracle 11gr2.
I am going to install Grid Infrastructure for 2 node cluster.

I am trying to configure SSH for user equivalency (oracle& grid),

and also i want to CHECK SSH for passwordless connectivity between these 2 nodes.

Question:-
_________
Even if i set up SSH between nodes, it is again asking password to switch between nodes.

please advice me on this.
_______________________________________________________________________________________________

I followed the following procedure.

On All the Cluster Nodes:-
____________________________
su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh

Generate the RSA and DSA keys:-
________________________________
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa

On node1:-
_________________
touch ~/.ssh/authorized_keys
cd ~/.ssh

(a) Add these Keys to the Authorized_keys file.

cat id_rsa.pub >> authorized_keys

cat id_dsa.pub >> authorized_keys

(b) Send this file to node2.

scp authorized_keys node2:.ssh/

On node2:-
_______________________

(a) Add these Keys to the Authorized_keys file.

cd ~/.ssh

cat id_rsa.pub >> authorized_keys

cat id_dsa.pub >> authorized_keys

(b) Send this file to node1.

scp authorized_keys node1:.ssh/

On All the Nodes:-
______________________

chmod 600 ~/.ssh/authorized_keys

____________________________________________

Q:- After this set up i want to go to node2 from node1 , i expect it should automatically connect to node2
without prompting me the password . but it is still prompts me password .please advise me .

[oracle@node1~]$ ssh oracle@node2
oracle@node2's password:

please advise me.

thanks in advance.

rampa

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Problem inSSH configuration in Grid Installation for clu

Postby Tim... » Sat Oct 13, 2012 11:56 am

Hi.

You don't have to manually set up user equivalence, the installer will do that for you.

If you still want to do it, you can use one of two methods, documented here:

http://www.oracle-base.com/articles/lin ... -linux.php

The sshUserSetup.sh method is the one the installer runs internally.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

adda.road@yahoo.com
Senior Member
Posts: 143
Joined: Thu Dec 08, 2011 12:33 am

Re: Problem inSSH configuration in Grid Installation for clu

Postby adda.road@yahoo.com » Sat Oct 13, 2012 3:27 pm

hi tim ,

thans for reply.i followed the steps.

ssh node1 date

ssh node2 date

ssh node1.localdomain date

ssh node2.localdomain date

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


but i am getting error as follows on 2 nodes.

on node1:- The authenticity of host 'node2.localdomain' can't be established.
on node2:- The authenticity of host 'node1.localdomain' can't be established.

please give me steps to fix it.

thanks in advance.

rampa

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Problem inSSH configuration in Grid Installation for clu

Postby Tim... » Sat Oct 13, 2012 3:45 pm

Hi.

I have no idea. I've never seen this problem before.

What happens when you use the installer to sort the user equivalence (during the GI installation)?

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle Database Administration”

Who is online

Users browsing this forum: No registered users and 8 guests

cron