GBase 8c部署准备(五):创建gbase用户免密登录
作者:互联网
所有节点创建gbase用户免密登录:
[gbase@localhost ~]$ mkdir ~/.ssh
[gbase@localhost ~]$ chmod 700 ~/.ssh
在任意节点均可进行数据库集群部署操作。通常采用在GTM节点进行GBase 8c数据库集群部署的方式。在执行部署脚本服务器上,gbase用户需配置免密登录其他服务器。
免密登录配置操作如下(以下操作仅在GTM节点进行):
gbase用户生成认证文件:
[gbase@localhost ~]$ ssh-keygen -t rsa
[gbase@localhost ~]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[gbase@localhost ~]$ chmod 600 ~/.ssh/authorized_keys
将秘钥文件拷贝至其他节点(此操作需输入密码):
[gbase@localhost ~]$ scp ~/.ssh/authorized_keys gbase@192.168.142.210:~/.ssh/
[gbase@localhost ~]$ scp ~/.ssh/authorized_keys gbase@192.168.142.211:~/.ssh/
[gbase@localhost ~]$ scp ~/.ssh/authorized_keys gbase@192.168.142.212:~/.ssh/
[gbase@localhost ~]$ scp ~/.ssh/authorized_keys gbase@192.168.142.213:~/.ssh/
标签:免密,keys,8c,gbase,ssh,GBase,localhost,authorized 来源: https://blog.csdn.net/futianxia061112/article/details/121848766