只列出在一个机器上的操作。从rac01-ud-us-eqx到rac02-ud-us-eqx和rac03-ud-us-eqx

bash-3.00$ ssh 10.12.32.182
The authenticity of host '10.12.32.182 (10.12.32.182)' can't be established.
RSA key fingerprint is 7e:8d:db:aa:7c:15:3e:b6:4e:5f:86:58:b5:e8:97:7a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.12.32.182' (RSA) to the list of known hosts.
Password: 
Password: 
Password: 
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
bash-3.00$ 
bash-3.00$ 
bash-3.00$ /usr/bin/ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /export/home/oracle/.ssh/id_rsa.
Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
73:a0:e2:39:0b:6a:f5:b2:90:63:2d:a0:8b:20:96:af oracle@rac01-ud-us-eqx
bash-3.00$  /usr/bin/ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /export/home/oracle/.ssh/id_dsa.
Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
5b:f6:0b:e5:2d:85:04:1c:85:84:52:de:ac:a1:27:f1 oracle@rac01-ud-us-eqx
bash-3.00$ ssh rac01-ud-us-eqx cat /export/home/oracle/.ssh/id_rsa.pub >>authorized_keys
The authenticity of host 'rac01-ud-us-eqx (10.12.32.181)' can't be established.
RSA key fingerprint is a5:b1:df:ea:ca:b5:78:69:43:cb:2b:cb:de:9f:f1:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac01-ud-us-eqx,10.12.32.181' (RSA) to the list of known hosts.
Password: 
bash-3.00$ ssh rac01-ud-us-eqx cat /export/home/oracle/.ssh/id_dsa.pub >>authorized_keys
Password: 
bash-3.00$ ssh rac02-ud-us-eqx cat /export/home/oracle/.ssh/id_rsa.pub >>authorized_keys
The authenticity of host 'rac02-ud-us-eqx (10.12.32.182)' can't be established.
RSA key fingerprint is 7e:8d:db:aa:7c:15:3e:b6:4e:5f:86:58:b5:e8:97:7a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac02-ud-us-eqx' (RSA) to the list of known hosts.
Password: 
bash-3.00$ ssh rac02-ud-us-eqx cat /export/home/oracle/.ssh/id_dsa.pub >>authorized_keys
Password: 
bash-3.00$ scp authorized_keys rac02-ud-us-eqx:/export/home/oracle/.ssh
Password: 
authorized_keys      100% |*********************************************************************************|  2532       00:00    
bash-3.00$  ssh rac02-ud-us-eqx
Last login: Wed Apr 21 02:28:53 2010 from rac01-ud-us-eqx
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ exit
Connection to rac02-ud-us-eqx closed.
bash-3.00$ ssh rac03ud-us-eqx cat /export/home/oracle/.ssh/id_rsa.pub >>authorized_keys
ssh: rac03ud-us-eqx: node name or service name not known
bash-3.00$ ssh rac03-ud-us-eqx cat /export/home/oracle/.ssh/id_rsa.pub >>authorized_keys
The authenticity of host 'rac03-ud-us-eqx (10.12.32.183)' can't be established.
RSA key fingerprint is 01:d0:d1:4c:6b:4e:00:fe:d1:c0:33:5d:fd:56:2f:19.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac03-ud-us-eqx,10.12.32.183' (RSA) to the list of known hosts.
Password: 
bash-3.00$ ssh rac03ud-us-eqx cat /export/home/oracle/.ssh/id_dsa.pub >>authorized_keys
ssh: rac03ud-us-eqx: node name or service name not known
bash-3.00$ ssh rac03-ud-us-eqx cat /export/home/oracle/.ssh/id_dsa.pub >>authorized_keys
Password: 
bash-3.00$ scp authorized_keys rac03-ud-us-eqx:/export/home/oracle/.ssh
Password: 
authorized_keys      100% |*********************************************************************************|  3376       00:00    
bash-3.00$  ssh rac03-ud-us-eqx
Last login: Wed Apr 21 02:31:14 2010 from rac01-ud-us-eqx
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ exit
Connection to rac03-ud-us-eqx closed

转载于:https://www.cnblogs.com/springside4/archive/2011/05/31/2481655.html

配置主机间信任的一个简单办法相关推荐

  1. linux信任主机建立不了,openssh主机间信任关系建立

    openssh主机间信任关系建立 发布时间:2008-07-29 00:12:49来源:红联作者:eowyxip 这次我们尝试在两台linux主机间利用openssh建立主机间信任关系,采用ssh-k ...

  2. PHP动态网页转换HTML的一个简单办法

    PHP开发工具的优势 作为一种简单而高效的Server端嵌入语言,PHP已成为Internet上最流行的一种动态网站制作工具.它不但能够对多种数据库提供良好支持,而且与其它的Server端脚本语言如A ...

  3. 手机语音翻译怎么做?分享一个简单办法,快速实现中英文语音对话

    翻译分为文字翻译和语音翻译,文字翻译使用手机浏览器直接搜索就能完成,但实现语音翻译还是比较困难的,随着科技的发展,语音翻译用手机也能轻松实现了,就算进行中英文语音实时对话也是非常简单的事,那么手机该如 ...

  4. 局域网内不能ping通主机名问题的一个解决办法

    在局域网内不能ping通主机名. 如下: C:/Documents and Settings/Administrator>ping win2003server Ping request coul ...

  5. 使用Win 2003轻松建立森林间信任

    Windows 2000使公司可以将不同的商业单元集成到一个统一的结构中,这个结构就是活动目录森林,这在Windows NT 4.0中是不可能的.许多在NT 4.0域中不能共存的商业单元现在可以在活动 ...

  6. 使用Windows Server 2003轻松建立森林间信任

    Windows 2000使公司可以将不同的商业单元集成到一个统一的结构中,这个结构就是活动目录森林,这在Windows NT 4.0中是不可能的.许多在NT 4.0域中不能共存的商业单元现在可以在活动 ...

  7. SpringBoot + Dubbo + Zookeeper搭建一个简单的分布式服务

    本文使用SpringBoot + Dubbo + Zookeeper 来搭建一个简单的分布式服务 文章目录 dubbo-spring-boot-starter 如何发布 Dubbo 服务 如何消费 D ...

  8. wowza 配置自己的VOD-Edge 实现一个vod点播

    1.安装完wowza ,启动服务后 访问http://localhost:8088/enginemanager管理控制台 2.先配置一个Media Cache 2.add 一个media cache ...

  9. Hadoop集群搭建(二:集群主机间免密登录配置)

    实验目的及要求: 静态网络地址配置: 主机名的配置: 防火墙的配置,使平台相关软件的常用端口能够远程正常访问: 主机地址映射的配置,使所有主机能够通过主机名相互正常访问: 免密码登录的配置,使所有主节 ...

  10. hosts多个ip对应一个主机名_一个简单的Web应用程序,用作连接到ssh服务器的ssh客户端...

    WebSSH 一个简单的Web应用程序,用作连接到ssh服务器的ssh客户端.它是用Python编写的,基于tornado,paramiko和xterm.js. 特征 支持SSH密码验证,包括空密码. ...

最新文章

  1. 在线看板Leangoo实践
  2. linux下配置tomcat、resin
  3. 网络推广外包——网络推广外包专员如何做好网站首页设计
  4. 用javascript实现以下功能!_模电小实验:用三极管实现触摸开关功能
  5. HDU-5249 KPI(STL or 权值线段树)
  6. 2016电大计算机网考,2016年电大-电大计算机网考题库[].doc
  7. Kubernetes 1.9集群使用traefik发布服务
  8. 怎么看b树是几阶_数据库原理基础:设计B树与B+树的目的以及二者的优劣
  9. 深入理解java虚拟机_深入理解Java类加载
  10. vue实现对数据的增删改查(CURD)
  11. js模仿块级作用域(js没有块级作用域私有作用域)
  12. /usr/lib64/libssl.so.10: no version information available (required by ./mongod)
  13. 挂载、卸载、free查看内存情况、创建交换分区、回环设备、dd命令、自动挂载、fuser...
  14. ERROR: CMake must be installed to build dlib
  15. SAP中文件的上传和下载
  16. C++中的RECT类
  17. Arcgis中怎样设置调查路线线型(带箭头的虚线),附带1:1万地形图符号库
  18. 方正书版PS文件转换PDF文件PHP源程序 发布说明
  19. go实现 LeetCode 1227 飞机座位分配概率
  20. 一键取消所有淘宝垃圾短信

热门文章

  1. 耐思尼克的“建站宝盒”怎么样呀?
  2. android UI进阶之布局的优化
  3. [原创]Ajax UpLoadFile 多个大文件上传控件及应用范例
  4. Qt5学习笔记之QQ登录界面二:登录按钮与信号槽
  5. 网络编程聊天室----服务器端
  6. javascript-文档结构遍历
  7. CXF处理Date类型的俩种方式
  8. 关于scrollTop
  9. 什么是FLV视频格式?FLV视频格式是什么意思?
  10. 【linux】知识点总结