当前位置:网站首页>Batch distribution of SSH keys and batch execution of ansible
Batch distribution of SSH keys and batch execution of ansible
2022-07-04 09:58:00 【Stestack】
http://www.cnblogs.com/chensiqiqi/p/6556509.html Self recording
One Unclassified
[email protected] ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -P " "
Command specification :
sshpass: Specially designed for ssh Free user tools for connecting services
-p : Specify the login password
ssh-copy-id: A tool for automatically distributing public keys
-i: Specify public key path
-o StrictHostKeyChecking=no : Do not write the other host information ( for the first time ssh The connection will be know_
hosts It is recorded in the document )
Two Distribute password
[[email protected] ~]# sshpass -p "ssh The login password " ssh-copy-id -i ~/.ssh/id_dsa.pub
"-o StrictHostKeyChecking=no [email protected]"
Command specification :
sshpass: Specially designed for ssh Free user tools for connecting services
-p : Specify the login password
ssh-copy-id: A tool for automatically distributing public keys
-i: Specify public key path
-o StrictHostKeyChecking=no : Do not write the other host information ( for the first time ssh The connection will be know_
hosts It is recorded in the document
3、 ... and adopt ansible Distribute tasks
边栏推荐
- Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
- Modules golang
- ASP. Net to access directory files outside the project website
- On Multus CNI
- Problems encountered by scan, scanf and scanln in golang
- Golang defer
- Web端自动化测试失败原因汇总
- Hands on deep learning (40) -- short and long term memory network (LSTM)
- Golang Modules
- 原生div具有编辑能力
猜你喜欢

Write a mobile date selector component by yourself

PHP personal album management system source code, realizes album classification and album grouping, as well as album image management. The database adopts Mysql to realize the login and registration f

Hands on deep learning (35) -- text preprocessing (NLP)

C语言指针经典面试题——第一弹

Fabric of kubernetes CNI plug-in

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1

C # use ffmpeg for audio transcoding

技术管理进阶——如何设计并跟进不同层级同学的绩效

Hands on deep learning (45) -- bundle search

SSM online examination system source code, database using mysql, online examination system, fully functional, randomly generated question bank, supporting a variety of question types, students, teache
随机推荐
C language pointer classic interview question - the first bullet
Exercise 9-4 finding books (20 points)
Machine learning -- neural network (IV): BP neural network
Daughter love in lunch box
2021-08-11 function pointer
Pueue data migration from '0.4.0' to '0.5.0' versions
SSM online examination system source code, database using mysql, online examination system, fully functional, randomly generated question bank, supporting a variety of question types, students, teache
Implementing expired localstorage cache with lazy deletion and scheduled deletion
Svg image quoted from CodeChina
5g/4g wireless networking scheme for brand chain stores
MongoDB数据日期显示相差8小时 原因和解决方案
Custom type: structure, enumeration, union
Deadlock in channel
mmclassification 标注文件生成
Hands on deep learning (38) -- realize RNN from scratch
libmysqlclient. so. 20: cannot open shared object file: No such file or directory
Golang Modules
Hands on deep learning (46) -- attention mechanism
Leetcode (Sword finger offer) - 35 Replication of complex linked list
Some summaries of the third anniversary of joining Ping An in China