5

请问如果要组建 100 个节点以上的集群,如何给机器配置免密登录呢?如果后期这个集群...

 2 years ago
source link: https://www.v2ex.com/t/810079
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Linux

请问如果要组建 100 个节点以上的集群,如何给机器配置免密登录呢?如果后期这个集群扩容到 200 个节点以上,该如何操作?有大佬提供下思路吗?

  hfylcy123 · 5 小时 22 分钟前 · 423 次点击
7 条回复    2021-10-23 23:31:03 +08:00

snownarrow

snownarrow   5 小时 12 分钟前

免密登录一般就是找一台当堡垒机,ssh-keyagen 生成公私钥文件,公钥文件传到受控端,堡垒机就可以免密登录其他服务器了,这个 100 节点,200 节点没啥区别,管理的话一般就 pssh 或者 ansible ,或者直接用 saltstack 管理(需安装客户端)

Rorysky

Rorysky   4 小时 49 分钟前

谷歌 ansible 免密登陆

Seayon

Seayon   4 小时 49 分钟前

ansible

lululau

lululau   4 小时 30 分钟前

在公钥放在镜像里,或者在镜像里配置好 LDAP 等基于网络的认证

lululau

lululau   4 小时 27 分钟前

用 ansible expect 模块在添加 Pub Key 时自动输入登录口令也可以

leiakun

leiakun   3 小时 58 分钟前 via iPhone


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK