Oracle Study在AIX环境下如何构建主机信任关系

技术Oracle Study在AIX环境下如何构建主机信任关系这篇文章主要介绍Oracle Study在AIX环境下如何构建主机信任关系,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!在AIX环境下

贺盛德贺盛德贺盛德神谕研究哦,天啊AIX安祖儿安祖儿安祖儿安祖儿安祖儿安祖儿,拜仁拜仁拜仁拜仁,朱庇特朱庇特朱庇特,范仲淹?范仲淹?范仲淹!

在AIX环境下构建主机信任关系首选rsh,但在构建Oracle 11g RAC时需要ssh支持,以下文档介绍如何在AIX6.1下构建ssh的信任关系。

默认aix没有安装ssh软件包,首先要安装ssh软件包:

1、下载、解压软件包

[root @ AIX 209 ssh]# ls http://www。新浪。com/

OpenSSH_5.8.0.6102.tar.Z openssl-0.9.8.1802.tar.Z ssh.txt

[root @ AIX 209 ssh]#不兼容的OpenSSH _ 5。8 .0 .6102 .焦油。z

[root @ AIX 209 ssh]#不兼容的OpenSSL-0。9 .8 .1802 .焦油。z

[root@aix209 ssh]#ls

OpenSSH _ 5。8 .0 .6102 .tar OpenSSL-0。9 .8 .1802 .tar ssh。txt http://www。新浪。com/

xopenssh.base,6310912字节,12326个区块

xopenssh.license,338944字节,662个磁带块

xopensh . man . en _ US,153600字节,300个打字块

xopensh . msg . ca _ ES,20480字节,40个磁带块

xopensh . msg . cs _ CZ,20480字节,40个磁带块

xopensh . msg . DE _ DE,20480字节,40个磁带块

xopensh . msg . en _ US,17408字节,34个磁带块

xopenssh。味精。es _ es,195646字节,38个磁带块

xopensh . msg . FR _ FR,20480字节,40个磁带块

xopensh . msg . HU _ HU,21504字节,42个磁带块

xopensh . msg . IT _ IT,195646字节,38个磁带块

xopensh . msg . JA _ JP,24576字节,48个磁带块

xopensh . msg . Ja _ JP,2624字节,52个磁带块

xopensh . msg . KO _ KR,21504字节,42个磁带块

xopensh . msg . PL _ PL,20480字节,40个磁带块

xopensh . msg . pt _ BR,195646字节,38个磁带块

xopensh . msg . RU _ RU,25600字节,50个磁带块

xopensh . msg . SK _ SK,20480字节,40个磁带块

xopensh . msg . zh _ CN,25600字节,50个磁带块

x个

openssh.msg.ZH_TW, 24576 bytes, 48 tape blocks
x openssh.msg.Zh_CN, 21504 bytes, 42 tape blocks
x openssh.msg.Zh_TW, 21504 bytes, 42 tape blocks
x openssh.msg.ca_ES, 19456 bytes, 38 tape blocks
x openssh.msg.cs_CZ, 19456 bytes, 38 tape blocks
x openssh.msg.de_DE, 20480 bytes, 40 tape blocks
x openssh.msg.en_US, 17408 bytes, 34 tape blocks
x openssh.msg.es_ES, 19456 bytes, 38 tape blocks
x openssh.msg.fr_FR, 20480 bytes, 40 tape blocks
x openssh.msg.hu_HU, 27648 bytes, 54 tape blocks
x openssh.msg.it_IT, 19456 bytes, 38 tape blocks
x openssh.msg.ja_JP, 26624 bytes, 52 tape blocks
x openssh.msg.ko_KR, 19456 bytes, 38 tape blocks
x openssh.msg.pl_PL, 27648 bytes, 54 tape blocks
x openssh.msg.pt_BR, 18432 bytes, 36 tape blocks
x openssh.msg.ru_RU, 27648 bytes, 54 tape blocks
x openssh.msg.sk_SK, 19456 bytes, 38 tape blocks
x openssh.msg.zh_CN, 21504 bytes, 42 tape blocks
x openssh.msg.zh_TW, 21504 bytes, 42 tape blocks

[root@aix209 ssh]#ls

OpenSSH_5.8.0.6102.tar  openssh.msg.IT_IT       openssh.msg.Zh_TW       openssh.msg.pl_PL
openssh.base            openssh.msg.JA_JP       openssh.msg.ca_ES       openssh.msg.pt_BR
openssh.license         openssh.msg.Ja_JP       openssh.msg.cs_CZ       openssh.msg.ru_RU
openssh.man.en_US       openssh.msg.KO_KR       openssh.msg.de_DE       openssh.msg.sk_SK
openssh.msg.CA_ES       openssh.msg.PL_PL       openssh.msg.en_US       openssh.msg.zh_CN
openssh.msg.CS_CZ       openssh.msg.PT_BR       openssh.msg.es_ES       openssh.msg.zh_TW
openssh.msg.DE_DE       openssh.msg.RU_RU       openssh.msg.fr_FR       openssl-0.9.8.1802.tar
openssh.msg.EN_US       openssh.msg.SK_SK       openssh.msg.hu_HU       ssh.txt
openssh.msg.ES_ES       openssh.msg.ZH_CN       openssh.msg.it_IT
openssh.msg.FR_FR       openssh.msg.ZH_TW       openssh.msg.ja_JP
openssh.msg.HU_HU       openssh.msg.Zh_CN       openssh.msg.ko_KR

[root@aix209 ssh]#tar xvf OpenSSH_5.8.0.6102.tar 

x openssh.base, 6310912 bytes, 12326 tape blocks
x openssh.license, 338944 bytes, 662 tape blocks
x openssh.man.en_US, 153600 bytes, 300 tape blocks
x openssh.msg.CA_ES, 20480 bytes, 40 tape blocks
x openssh.msg.CS_CZ, 20480 bytes, 40 tape blocks
x openssh.msg.DE_DE, 20480 bytes, 40 tape blocks
x openssh.msg.EN_US, 17408 bytes, 34 tape blocks
x openssh.msg.ES_ES, 19456 bytes, 38 tape blocks
x openssh.msg.FR_FR, 20480 bytes, 40 tape blocks
x openssh.msg.HU_HU, 21504 bytes, 42 tape blocks
x openssh.msg.IT_IT, 19456 bytes, 38 tape blocks
x openssh.msg.JA_JP, 24576 bytes, 48 tape blocks
x openssh.msg.Ja_JP, 26624 bytes, 52 tape blocks
x openssh.msg.KO_KR, 21504 bytes, 42 tape blocks
x openssh.msg.PL_PL, 20480 bytes, 40 tape blocks
x openssh.msg.PT_BR, 19456 bytes, 38 tape blocks
x openssh.msg.RU_RU, 25600 bytes, 50 tape blocks
x openssh.msg.SK_SK, 20480 bytes, 40 tape blocks
x openssh.msg.ZH_CN, 25600 bytes, 50 tape blocks
x openssh.msg.ZH_TW, 24576 bytes, 48 tape blocks
x openssh.msg.Zh_CN, 21504 bytes, 42 tape blocks
x openssh.msg.Zh_TW, 21504 bytes, 42 tape blocks
x openssh.msg.ca_ES, 19456 bytes, 38 tape blocks
x openssh.msg.cs_CZ, 19456 bytes, 38 tape blocks
x openssh.msg.de_DE, 20480 bytes, 40 tape blocks
x openssh.msg.en_US, 17408 bytes, 34 tape blocks
x openssh.msg.es_ES, 19456 bytes, 38 tape blocks
x openssh.msg.fr_FR, 20480 bytes, 40 tape blocks
x openssh.msg.hu_HU, 27648 bytes, 54 tape blocks
x openssh.msg.it_IT, 19456 bytes, 38 tape blocks
x openssh.msg.ja_JP, 26624 bytes, 52 tape blocks
x openssh.msg.ko_KR, 19456 bytes, 38 tape blocks
x openssh.msg.pl_PL, 27648 bytes, 54 tape blocks
x openssh.msg.pt_BR, 18432 bytes, 36 tape blocks
x openssh.msg.ru_RU, 27648 bytes, 54 tape blocks
x openssh.msg.sk_SK, 19456 bytes, 38 tape blocks
x openssh.msg.zh_CN, 21504 bytes, 42 tape blocks
x openssh.msg.zh_TW, 21504 bytes, 42 tape blocks

2、通过smit installs安装:
[root@aix209 ssh]#smit installs

3、安装成功后,系统自动启动ssh service:
[root@aix209 ssh]#l***c -a |grep ssh
 sshd             ssh              6029368      active

4、配置信任关系(通过建立公钥和私钥)
[grid@aix209 grid]$ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/home/grid/.ssh/id_rsa): 
Created directory '/home/grid/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/grid/.ssh/id_rsa.
Your public key has been saved in /home/grid/.ssh/id_rsa.pub.
The key fingerprint is:
46:8c:ac:aa:82:62:b1:5e:e2:ba:ed:d5:02:5e:f5:62 grid@aix209
The key's randomart p_w_picpath is:
+--[ RSA 2048]----+
|                 |
|     . o         |
|      + o        |
|     o o         |
|  . o E S        |
| o + o o         |
|..=.o .          |
|==o. .           |
|X=o              |
+-----------------+

[grid@aix209 grid]$ssh-keygen -t dsa

Generating public/private dsa key pair.
Enter file in which to save the key (/home/grid/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/grid/.ssh/id_dsa.
Your public key has been saved in /home/grid/.ssh/id_dsa.pub.
The key fingerprint is:
4a:6d:60:35:ee:1c:fe:7d:62:54:f6:31:5c:7b:4a:54 grid@aix209
The key's randomart p_w_picpath is:
+--[ DSA 1024]----+
|        o     ..E|
|       o .   .. o|
|      o o     +=.|
|     . * .   + o+|
|      . S   . . .|
|     . o . o     |
|      .   . + .  |
|           . o   |
|                 |
+-----------------+

[grid@aix209 ~]$cd .ssh
[grid@aix209 .ssh]$ls
id_dsa      id_dsa.pub  id_rsa      id_rsa.pub
[grid@aix209 .ssh]$cd ..          

在另一个node(aix210)同样方式建立密钥对:

[grid@aix210 grid]$ssh-keygen -t rsa

[grid@aix210 grid]$ssh-keygen -t dsa                         

[grid@aix209 ~]$cat .ssh/id_rsa.pub >>.ssh/authorized_keys
[grid@aix209 ~]$cat .ssh/id_dsa.pub >>.ssh/authorized_keys
[grid@aix209 ~]$ssh aix210 cat .ssh/id_rsa.pub >>.ssh/authorized_keys

The authenticity of host 'aix210 (192.168.8.210)' can't be established.
RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix210,192.168.8.210' (RSA) to the list of known hosts.
grid@aix210's password: 
[grid@aix209 ~]$ssh aix210 cat .ssh/id_dsa.pub >>.ssh/authorized_keys
grid@aix210's password: 

将公钥authorized_keys上传到对方主机:
[grid@aix209 ~]$scp .ssh/authorized_keys aix210:~/.ssh

grid@aix210's password: 
authorized_keys                                                             100% 1988     1.9KB/s   00:00    

验证:

[grid@aix209 ~]$ssh aix210 date
Mon Jan  5 22:24:19 CST 1970
[grid@aix209 ~]$ssh aix210-priv date
The authenticity of host 'aix210-priv (10.10.10.210)' can't be established.
RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix210-priv,10.10.10.210' (RSA) to the list of known hosts.
Mon Jan  5 22:24:27 CST 1970
[grid@aix209 ~]$ssh aix209-priv date
The authenticity of host 'aix209-priv (10.10.10.209)' can't be established.
RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix209-priv,10.10.10.209' (RSA) to the list of known hosts.
Mon Mar 28 18:39:55 CDT 2016
[grid@aix209 ~]$ssh aix209 date
The authenticity of host 'aix209 (192.168.8.209)' can't be established.
RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix209,192.168.8.209' (RSA) to the list of known hosts.
Mon Mar 28 18:40:02 CDT 2016

[grid@aix210 ~]$ssh aix209 date
The authenticity of host 'aix209 (192.168.8.209)' can't be established.
RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix209,192.168.8.209' (RSA) to the list of known hosts.
Mon Mar 28 18:40:30 CDT 2016
[grid@aix210 ~]$ssh aix209-priv date
The authenticity of host 'aix209-priv (10.10.10.209)' can't be established.
RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix209-priv,10.10.10.209' (RSA) to the list of known hosts.
Mon Mar 28 18:40:36 CDT 2016
[grid@aix210 ~]$ssh aix210-priv date
The authenticity of host 'aix210-priv (10.10.10.210)' can't be established.
RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix210-priv,10.10.10.210' (RSA) to the list of known hosts.
Mon Jan  5 22:25:26 CST 1970
[grid@aix210 ~]$ssh aix210 date
The authenticity of host 'aix210 (192.168.8.210)' can't be established.
RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'aix210,192.168.8.210' (RSA) to the list of known hosts.
Mon Jan  5 22:25:31 CST 1970

。。。验证通过,信任关系建立成功!

------  在构建Oracle RAC时,需要Oracle用户也要建立信任关系 。。。

以上是“Oracle Study在AIX环境下如何构建主机信任关系”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/115007.html

(0)

相关推荐

  • VMware虚拟机安装Mac操作系统

    技术VMware虚拟机安装Mac操作系统 VMware虚拟机安装Mac操作系统Mac虚拟机安装教程
    工具/原料vmware虚拟机苹果破解补丁(unlocker208)VMwareWorkstation苹

    礼包 2021年12月17日
  • 基于spark的数据质量评估(大数据巡检系统)

    技术基于Spark的公安大数据实时运维技术怎么使用本篇内容主要讲解“基于Spark的公安大数据实时运维技术怎么使用”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“基于Spark

    攻略 2021年12月14日
  • HTML002

    技术HTML002 HTML_002/*
    时间:2021/11/25
    功能:HTML
    目录: 一: 模板注释二: 常用标签三: 列表四: 表格五: 表单 六: 提交表单
    */一: 模板注释!--

    礼包 2021年11月26日
  • 【配置与安装】解决类似umount target is busy挂载盘卸载不掉问题

    技术【配置与安装】解决类似umount target is busy挂载盘卸载不掉问题 【配置与安装】解决类似umount target is busy挂载盘卸载不掉问题解决类似umount targe

    礼包 2021年12月6日
  • python发qq消息轰炸虐狗好友思路分析

    技术python发qq消息轰炸虐狗好友思路分析本篇内容介绍了“python发qq消息轰炸虐狗好友思路分析”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希

    攻略 2021年11月4日
  • linux加载环境变量和文件头

    技术linux加载环境变量和文件头 linux加载环境变量和文件头Linux 目录结构及详细操作
    目录结构常见的目录结构Windows下:D: \ProgramFilesLinux下:/etc/sysc

    礼包 2021年12月14日