Skip to content

hcymysql/batch_sshkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

将3个文件放入同一个目录下,例如/root/ansible/

修改batch_sshkey.sh

user='hechunyang'     #远程主机SSH用户名,具有sudo权限

password='123456'     #远程主机SSH密码

主机配置文件

cat test_host.txt 

192.168.32.51:22

192.168.32.52:22

192.168.32.53:22

remote_operate.sh(把管理机的公钥传给远程主机)

SSH主机批量互信认证

执行:

shell> bash batch_sshkey.sh

image

About

SSH主机批量互信认证

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages