建立用户等效性

上传人:飞*** 文档编号:4730184 上传时间:2017-08-23 格式:DOC 页数:2 大小:18KB
返回 下载 相关 举报
建立用户等效性_第1页
第1页 / 共2页
建立用户等效性_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《建立用户等效性》由会员分享,可在线阅读,更多相关《建立用户等效性(2页珍藏版)》请在金锄头文库上搜索。

1、要建立用户等效性,请在两个节点上以 grid 用户身份生成用户的公钥和私钥。注意:要检查/home/grid 目录。一定要是 700(rwx 对应权限 421)第一步:在 node1 上执行 #su - gridnode1 - mkdir /.sshnode1 - chmod 700 /.sshnode1 - ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/export/home/onodele/.ssh/id_rsa):Enter passphrase

2、(empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/onodele/.ssh/id_rsa.Your public key has been saved in /export/home/onodele/.ssh/id_rsa.pub.The key fingerprint is:d3:ae:55:e0:eb:72:d9:1b:33:7a:ba:3c:55:3c:15:fe root node1 node1 - ssh-keygen -t

3、dsaGenerating public/private dsa key pair.Enter file in which to save the key (/export/home/onodele/.ssh/id_dsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/onodele/.ssh/id_dsa.Your public key has been saved in /export/hom

4、e/onodele/.ssh/id_dsa.pub.The key fingerprint is:fd:1b:14:f6:8d:20:aa:a3:4f:87:1a:9f:97:3d:5b:47 root node1 第二步:在 node2 上执行上面同样的操作第三步:在 node1 上执行 node1 - cat /.ssh/id_rsa.pub /.ssh/authorized_keysnode1 - cat /.ssh/id_dsa.pub /.ssh/authorized_keysnode1 - ssh node2 cat /.ssh/id_rsa.pub /.ssh/authorize

5、d_keysThe authenticity of host node2 (192.168.2.132) cant be established.RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.Are you sure you want to continue connenodeng (yes/no)? yesWarning: Permanently added node1,198.93.1.10 (RSA) to the list of known hosts.onodelenode2s passw

6、ord:node1 - ssh node2 cat /.ssh/id_dsa.pub /.ssh/authorized_keysonodelenode2s password:node1 - scp /.ssh/authorized_keys node2:/.ssh/authorized_keysonodelenode2s password:authorized_keys 100% 1716 1.7KB/s 00:00执行上面三步后,在每个节点上测试连接。验证当您再次运行以下命令时,系统是否不提示您输入口令。 在 node1 上执行:ssh node2 datessh node2-priv date在 node2 上执行:ssh node1 datessh node1-priv date在测试的时候,会有提示,输入 yes 即可,但是切记要在两个节点运行。如果有异常,需要检查原因,一般来说是 hosts 文件的问题。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 研究报告 > 技术指导

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号