当前位置:网站首页>Batch implementation of key based authentication using sshpass
Batch implementation of key based authentication using sshpass
2022-07-24 06:32:00 【Step on the path of the pit】
#!/bin/bash
# utilize sshpass Batch implementation is based on key verification
# 192.168.100.{1..200}
[ -f /root/.ssh/id_rsa ] || ssh-keygen -f /root/.ssh/id_rsa -P ''
rpm -q sshpass &> /dev/null || yum install sshpass -y &> /dev/null
net=192.168.100
user=root
export SSHPASS=123456
for i in {1..200}
do
{
sshpass -e ssh-copy-id $net.$i -o StrictHostKeyChecking=no [email protected]$net.$i &> /dev/null && action "push key to $net.$i is successfully."
}&
done边栏推荐
猜你喜欢
![Public access intranet IIS website server [no public IP required]](/img/e5/45d7c59ed30bbf901f793f25e229e2.png)
Public access intranet IIS website server [no public IP required]

数据集和预训练模型

LVM and disk quota

服务器硬件及RAID配置实战

【218】CS架构和BS架构以及数据放在服务端和客户端的利与弊?

【301】怪诞行为学-可预测的非理性

力扣986.区间列表的交集

Jenkins automated unattended operation (up / down)

JSP tag

Remember to get the password of college student account once, from scratch
随机推荐
[214] what is an automation framework
【214】什么是自动化框架
Remember 20 classic interview questions of performance test in three minutes
项目上复盘引导问题清单
NFS共享服务及实验
IP job (2) rip
MySQL批量修改数据表编码及字符集为utf8mb4
The public network uses Microsoft Remote Desktop remote desktop to work remotely at any time
Function application of MySQL
Windows下bat脚本备份MySQL数据库
Windows下Mysql5.7忘记root密码解决方法
leetcode剑指offer jz5 替换空格字符串
Interview questions for Test Manager / test team leader / Test Supervisor
Remember to get the password of college student account once, from scratch
leetcode剑指offer JZ73 翻转单词序列
Homework in the second week
三分钟记住20道性能测试经典面试题
LuckyFrameWeb测试平台(一款支持接口自动化、WEB UI自动化、APP自动化,并且支持分布式测试的全纬度免费开源测试平台)
MySQL Index & execution plan
Leetcode sword finger offer jz73 flip word sequence