RAC安装外传之配置ssh用户等价
RAC安装外传之配置ssh用户等价
RAC-2配置
[Oracle@RAC-2 .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
15:cb:6b:c9:31:dc:e0:f4:25:bf:b3:87:86:9a:68:bc oracle@RAC-2
[oracle@RAC-2 .ssh]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
3b:84:c4:2b:b6:a9:10:6d:1f:99:ff:79:b8:6f:23:a2 oracle@RAC-2
[oracle@RAC-2 .ssh]$ cat *.pub >> authorized_keys
RAC-1配置
[oracle@RAC-1 .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
bc:5c:a3:42:8c:c8:8e:b5:d1:cd:be:09:28:15:79:24 oracle@RAC-1
[oracle@RAC-1 .ssh]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
48:73:62:3a:60:c9:ac:26:ef:27:e3:60:88:37:7e:bf oracle@RAC-1
[oracle@RAC-1 .ssh]$ cat *.pub >> authorized_keys
完成后将所有节点authorized_keys合并并覆盖各节点下同名文件.
#可通过NFS,FTP,共享物理主机文件夹等各种方式传输/共享文件.
#合并的话 cat file1 >> file2 即可
完成后进行测试.
[oracle@RAC-1 .ssh]$ ssh rac-2
Last login: Fri Mar 18 00:18:36 2011 from rac-1
[oracle@RAC-1 .ssh]$ ssh rac-2-priv
Last login: Fri Mar 18 00:18:53 2011 from rac-1
[oracle@RAC-2 .ssh]$ ssh rac-1
Last login: Fri Mar 18 00:17:57 2011 from rac-2-priv
[oracle@RAC-2 .ssh]$ ssh rac-1-priv
Last login: Fri Mar 18 00:19:47 2011 from rac-2
测试成功.
评论暂时关闭