

批量分发密钥对-linux-51CTO博客
source link: http://blog.51cto.com/13132636/2066607
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

批量分发密钥对
#!/bin/bash
#create key pair
\rm -f /root/.ssh/id_dsa
ssh-keygen -t dsa -f /root/.ssh/id_dsa -P "" -q
#fenfa_key file
for ip in 7 41 31
do
echo "====== fanfa key to host 172.16.1.$ip==================="
sshpass -p123456 ssh-copy-id -i /root/.ssh/id_dsa.pub "-o StrictHostKeyChecking=no [email protected].$ip"
echo "====== fenfa END==================="
echo ""
done
Recommend
-
86
中国开通量子密钥分发的京沪干线
-
109
rsync.expect#!/usr/bin/expectset passwd "123456" ##建议用密...
-
3
量子密钥分发与后量子算法实现融合应用 来源:
-
7
红帽分发的Linux有哪些版本?有免费RHEL吗? 【原创】 2021-06-10 10:24:06关键字: Linux
-
12
shell实现批量分发ssh公钥生产实践: 批量分发公钥学习技巧: for循环及expect使用脚本内容:
-
4
14 February 2022 - 字数统计:2342 - 阅读大约需要7分钟 - Hits: 44 Mayx的博客分发方案 by mayx 无论什么资料,都有保存的价值! 在今年年初,
-
4
Flatpak首页、文档和下载 - Linux 应用沙盒和分发框架 - OSCHINA - 中文开源技术交流社区 ...
-
5
生成上传密钥和密钥库 原创 如果您还没有上传密钥(配置 Play 应用签名功能时需要使用),可以使用 Android Studio 生成一个,具体步...
-
10
Linux第七节课 精选 原创 rhel学习者 2022-11-01 22:59:29...
-
7
中国实现百兆比特率量子密钥分发 比世界最快纪录提升10倍 2023-03-14 09:16 出处/作者:快科技 整合编辑:佚名 0
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK