技术栈

ansible-设置互信

feichang_notlike32024-01-22 13:42

Ansible 配置公私钥

  • 生成私钥:
bash 复制代码
ssh-keygen
  • 向主机分发私钥:
bash 复制代码
ssh-copy-id -i /root/.ssh/id_rsa.pub cloudos@172.16.0.54

报错

-bash: ssh-copy-id: command not found

解决办法:

bash 复制代码
yum -y install openssh-clientsansible
上一篇:ansible
下一篇:C语言中的递归过程和递归工作栈
相关推荐
杨了个杨8982
17 小时前
Ansible的常见用法
ansible
陈桴浮海
20 小时前
【Linux&Ansible】学习笔记合集三
linux·运维·云原生·ansible
Sheffield
2 天前
command和shell模块到底区别在哪?
linux·云计算·ansible
陈桴浮海
2 天前
【Linux&Ansible】学习笔记合集二
linux·学习·ansible
馨谙
2 天前
Ansible模块化Playbook管理:静态导入与动态包含详解
运维·ansible
馨谙
3 天前
Ansible 事实(Facts)全面指南:自动化运维中的主机信息管理
运维·ansible
馨谙
3 天前
Ansible处理程序完全指南:实现智能的任务触发机制
运维·ansible
馨谙
4 天前
Ansible 多 Play 编写与模块使用全解析
运维·ansible
馨谙
4 天前
Ansible 清单详解:静态清单的构建与管理
ansible
馨谙
4 天前
Ansible 配置文件详解:让自动化管理更轻松
运维·github·ansible
热门推荐
01GitHub 镜像站点02Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services03openclaw配置教程(linux+局域网ollama)04UV安装并设置国内源05Linux下V2Ray安装配置指南06AI 规范驱动开发“三剑客”深度对比:Spec-Kit、Kiro 与 OpenSpec 实战指南07openclaw使用nginx反代部署过程 与disconnected (1008): pairing required解决08Claude Code Skills 实用使用手册09在Trae中使用Pencil MCP10OpenClaw Chrome扩展使用教程 - 浏览器中继控制