# SSH免密脚本 **Repository Path**: alonemen/ssh-secret-free-script ## Basic Information - **Project Name**: SSH免密脚本 - **Description**: 使用expect免交互批量配置ssh免密登录 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-06-24 - **Last Updated**: 2022-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SSH免密脚本 #### 介绍 使用expect免交互批量配置ssh免密登录 #### 软件架构 #### 脚本说明 此脚本用于配置ssh免密 1. ssh_hosts: 主机IP地址 2. ssh_keycreate.exp: 创建秘钥 3. ssh_keymoving.exp: 传输秘钥 4. ssh_nopassword.sh: 执行脚本 #### 安装教程 1. yum install expect -y #### 使用说明 1. 将需要免密登录的主机IP地址填写到ssh_hosts文件里 2. 将服务器密码填写到ssh_keymoving.exp文件里 3. 执行脚本ssh_nopassword.sh即可 $ sh ssh_nopassword.sh