当前位置:Gxlcms > mysql > RAC安装外传之配置ssh用户等价

RAC安装外传之配置ssh用户等价

时间:2021-07-01 10:21:17 帮助过:28人阅读

RAC-2配置 [Oracle@RAC-2 .ssh]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the

Linux公社

首页 → 数据库技术

背景:

阅读新闻

RAC安装外传之配置ssh用户等价

[日期:2011-12-04] 来源:Linux社区 作者:xin23 [字体:]

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

测试成功.

linux

  • 0
  • ORA-01758: 要添加必需的 (NOT NULL) 列, 则表必须为空

    MySQL Innodb数据库性能实践——VARCHAR vs CHAR

    相关资讯 Oracle数据库 Oracle入门教程 oracle数据库教程

    图片资讯

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,,也不构成任何建议。


    Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

    人气教程排行