From 50d924855374e0afbbefa5f4baeaf857446fc2e1 Mon Sep 17 00:00:00 2001 From: caoyingjunz Date: Sat, 30 Dec 2023 23:34:23 +0800 Subject: [PATCH] Install the sshpaas package before run auth-key --- docs/install/auth-key.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/install/auth-key.md b/docs/install/auth-key.md index c9f1cf1b..02beb64a 100644 --- a/docs/install/auth-key.md +++ b/docs/install/auth-key.md @@ -4,6 +4,7 @@ - [依赖安装](prerequisites.md) - 配置部署节点的 `/etc/hosts` , 添加 `kubernetes` 节点的ip和主机名解析 - 完成 `multinode` 配置 +- 依赖 `sshpass` 包 ### 执行步骤 1. (可选)生成 `id_rsa` 和 `id_rsa.pub` 文件 @@ -12,14 +13,22 @@ ssh-keygen ``` -2. 执行如下命令,进行开启批量免密码登陆 +2. 确保 `sshpass` 已安装 + ``` bash + # CentOS + # yum -y install sshpass + # Ubuntu/Debian + # apt-get install sshpass + ``` + +3. 执行如下命令,进行开启批量免密码登陆 ``` bash kubez-ansible -i multinode authorized-key ``` -3. 在出现 `SSH password:` 的提示后,输入节点密码,完成批量开通 +4. 在出现 `SSH password:` 的提示后,输入节点密码,完成批量开通 -4. 登陆验证 +5. 登陆验证 ``` bash ansible -i multinode all -m ping