so5.ssh_hostbased_auth
SSH 主机基于认证
允许从指定主机进行 SSH 主机基于认证 同时设置 SSH 客户端使用主机基于认证。
要求
无。
角色变量
ssh_hostbased_auth_allowed_hosts: [] # 允许访问目标机器的主机的 IP 地址或主机名。
ssh_hostbased_auth_only: False # 如果为真,优先访问将限制为基于主机的认证。
ssh_hostbased_auth_server: True # 设置服务器配置。
ssh_hostbased_auth_client: True # 设置客户端配置 (/etc/ssh/ssh_config)。
ssh_hostbased_auth_keyscan_retry: 6 # ssh-keyscan 的重试次数。
ssh_hostbased_auth_keyscan_retry_delay: 10 # 每次 keyscan 之间的延迟时间。
ssh_hostbased_auth_permit_root_login: false # 是否允许 root 登录。
ssh_hostbased_auth_only: false # 限制为基于主机的认证。
依赖
需要 dnspython 包。
示例剧本
- hosts: all
roles:
- { role: so5.ssh_hostbased_auth, ssh_hostbased_auth_allowed_hosts: ["192.168.0.2", "192.168.0.4"] }
许可证
MIT
作者信息
此角色由相良直之创建。
安装
ansible-galaxy install so5.ssh_hostbased_auth
许可证
mit
下载
6.4k
拥有者