17 July,2010 by Tom Collins
Follow the steps below to generate a key pair with ssh-keygen on Red Hat Linux
Replace : myserver1 and myserver2 with your server names
#SSH on both members of the cluster – Prepare SSH
/usr/bin/ssh-keygen -f /root/.ssh/id_dsa -q -t dsa -N ""
/usr/bin/ssh-keygen -f /root/.ssh/id_rsa -q -t rsa -N ""
cat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys2
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys2
#On Node 1 (UKRHDB2P02)- in other words -
ssh myserver1 cat /root/.ssh/authorized_keys2 >> /root/.ssh/authorized_keys2
#On Node 2 (UKASDB2P02)- in other words -
ssh myserver2 cat /root/.ssh/authorized_keys2 >> /root/.ssh/authorized_keys2
#test
ssh <the other server> uname -a
Ref:Jack Vamvas(http://www.dba-db2.com)
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |