1, single node setup
2,Setup passphraseless ssh
Now check that you can ssh to the localhost without a passphrase:
$ ssh localhost
If you cannot ssh to localhost without a passphrase, execute the following commands:
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
in slave:
1, scp ~/.ssh/id_dsa.pub XXX.XXX.XXX.XXX:/.ssh/.
2, cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
so that master can login slave without inputting password by SSH.
configure master and slaver in conf folder.
startup master, it is ok.
本文介绍如何在单节点上进行SSH无密码登录的配置,并详细解释了如何将密钥复制到从节点,实现主节点对从节点的SSH免密登录。此外,还提供了配置主从节点及启动主节点的基本步骤。

被折叠的 条评论
为什么被折叠?



