RAC安裝外傳之配置ssh使用者等價

來源:互聯網
上載者:User

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

測試成功.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.