https://github.com/indiff/sh
script for os
https://github.com/indiff/sh
Last synced: about 1 year ago
JSON representation
script for os
- Host: GitHub
- URL: https://github.com/indiff/sh
- Owner: indiff
- Created: 2018-12-11T11:36:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T11:38:15.000Z (over 7 years ago)
- Last Synced: 2025-02-14T07:47:40.833Z (over 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sh
script for os
## 多服务器免密码
### 1. 安装 expect
```
yum install expect
```
### 2. 生成秘钥
```
ssh-keygen
```
### 3. 编辑 /etc/hosts文件
```
vi /etc/hosts
192.168.1.1 test1
192.168.1.2 test2
192.168.1.3 test3
192.168.1.4 test4
192.168.1.5 test5
```
### 4. 执行脚本
```
curl -s https://raw.githubusercontent.com/indiff/sh/master/nopass2.sh | sh
```