10g RAC --using ssh without password

  • From: "Sridhar" <sridhara.m@xxxxxxxxxxxx>
  • To: <ora-apps-dba@xxxxxxxxxxxxx>
  • Date: Thu, 14 Feb 2008 11:00:24 +0530

Hi Kathy/Atul,

 

I am configuring 10g RAC on vmware (RHEL AS4 & 2 nodes).When I am
configuring ssh without password I am unable to do so.

Please see the steps I followed

rac1

cd /home/oracle/

mkdir .ssh

chmod 700 .ssh

cd .ssh

ssh-keygen rsa

ssh-keygen dsa

 

Performed same steps on rac2

 

then at rac1

touch authorized_keys

ssh rac1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys

--followed steps

ssh rac1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys

--followed steps

ssh rac2 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys

--followed steps

ssh rac2 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys

chmod 644 ~/.ssh/authorized_keys

 

performed the same steps at rac2

 

--establish user equivalency

as oracle user

exec /usr/bin/ssh-agent $SHELL

/usr/bin/ssh-add

 

then i typed 

at rac1

ssh rac1 date --asking me the password (without password if i enter it is
asking me password

ssh rac2 date --- same above

at rac2

 

ssh rac1 date --same above

ssh rac2 date --same above

 

Any good suggestion (I can use rsh/rcp) to resolve ssh without password.

 

Thanks in advance,

Dr.M.Sridhar

Team Lead

Vertex Computer Systems 

Other related posts: