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 uname -a Ref:Jack Vamvas(http://www.dba-db2.com)
阅读更多 →