设置SSH免密钥
关于ssh免密码的设置,要求每两台主机之间设置免密码,自己的主机与自己的主机之间也要求设置免密码。 这项操作可以在admin用户下执行,执行完毕公钥在/home/admin/.ssh/id_rsa.pub
[[email protected] ~]# ssh-keygen -t rsa [[email protected] ~]# ssh-copy-id node21 [[email protected] ~]# ssh-copy-id node22 [[email protected] ~]# ssh-copy-id node23
node1与node2为namenode节点要相互免秘钥 HDFS的HA
[[email protected] ~]# ssh-keygen -t rsa [[email protected] ~]# ssh-copy-id node22 [[email protected] ~]# ssh-copy-id node21 [[email protected] ~]# ssh-copy-id node23
node2与node3为yarn节点要相互免秘钥 YARN的HA
[[email protected] ~]# ssh-keygen -t rsa [[email protected] ~]# ssh-copy-id node23 [[email protected] ~]# ssh-copy-id node21 [[email protected] ~]# ssh-copy-id node22
原文地址:https://www.cnblogs.com/defineconst/p/10995381.html
时间: 2024-11-05 14:56:02