Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install the sshpaas package before run auth-key #376

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/install/auth-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- [依赖安装](prerequisites.md)
- 配置部署节点的 `/etc/hosts` , 添加 `kubernetes` 节点的ip和主机名解析
- 完成 `multinode` 配置
- 依赖 `sshpass` 包

### 执行步骤
1. (可选)生成 `id_rsa` 和 `id_rsa.pub` 文件
Expand All @@ -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

Expand Down
Loading