› Fóruns › Banco de dados Oracle › Equivalencia para os usuários › Equivalencia para os usuários
João faz o teste na mão no prompt do linux.
ssh e veja se irá pedir senha.
Eu uso esse how to aqui:
10) Criar chaves com autorized_keys
Create authorized key file.
$ touch ~/.ssh/authorized_keys
$ cd ~/.ssh
bash-3.00$ ls -lrt *.pub
-rw-r–r– 1 oracle oinstall 399 Nov 20 11:51 id_rsa.pub
-rw-r–r– 1 oracle oinstall 607 Nov 20 11:51 id_dsa.pub
The listing above should show the id_rsa.pub and id_dsa.pub public keys created in the previous section
In this step, use SSH to copy the content of the ~/.ssh/id_rsa.pub and ~/.ssh/id_dsa.pub public key from all Oracle RAC nodes in the cluster to the authorized key file just created (~/.ssh/authorized_keys).
Here node 1 is ocvmrh2045 and node 2 is ocvmrh2053
ssh ocvmrh2045 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh ocvmrh2045 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh ocvmrh2053 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh ocvmrh2053 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Now that we have the entry for all the public keys on both the node in this file, we should copy the file to all the RAC nodes. We done have to do this on all nodes, just copying the file to other nodes will do.
scp ~/.ssh/authorized_keys ocvmrh2053:.ssh/authorized_keys
Set permissions to the authorized file
chmod 600 ~/.ssh/authorized_keys