ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在集群节点是配置SSH

在集群节点是配置SSH

原创 Linux操作系统 作者:lijiewww2005 时间:2010-01-05 11:58:15 0 删除 编辑
1.login in as the oracle user
2.create the .ssh directory in the oracle user's home directory and set the correct permissions on it:
mkdir ~/.ssh
chmod 700 ~/.ssh
3.genterate a RSA key
/usr/bin/ssh-keygen -t rsa
4.generate a DSA key
/usr/bin/ssh-keygen -t dsa
5.on the local node,create authorized_keys
$touch ~./ssh/authorized_keys
$cd ~/.ssh
$ls
6.copy the contents of the ~/.ssh/id_rsa.pub and ~/.ssh/id_dsa.pub files to the file ~/.ssh/authorized_keys
$ssh node1 cat  /home/oracle/.ssh/id_rsa.pub>>authorized_keys
$ssh node1 cat /home/oracle/.ssh/id_dsa.pub>>authorized_keys
$ssh node2 cat / home/oracle/.ssh/id_rsa.pub>>authorized_keys
$ssh node2 cat /home/oracle/.ssh/id_dsa.pub>>authorized_keys
6.use scp or sftp to copy the authorized_keys file to the oracle user .ssh directory on a remote node
$scp authorized_keys node2:/home/oracle/.ssh/
7.change the permissions on the oracle user's /.ssh/authorized_keys file on all cluster nodes:
$chmod 600 ~/.ssh/authorized_keys

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9117394/viewspace-624350/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: AIX下配置SSH
请登录后发表评论 登录
全部评论

注册时间:2009-12-12

  • 博文量
    7
  • 访问量
    14413