Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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 node3.
scp authorized_keys node3:.ssh/
On node3:
(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 and node2.
scp authorized_keys node1:.ssh/
scp authorized_keys node2:.ssh/
On All the Nodes:
chmod 600 ~/.ssh/authorized_keys
ssh node1 date
ssh node2 date
ssh node3 date
ssh node1.hingu.net date
ssh node2.hingu.net date
ssh node3.hingu.net date
ssh node1-prv date
ssh node2-prv date
ssh node3-prv date