D
D
Dmitry2017-10-15 13:07:30
linux
Dmitry, 2017-10-15 13:07:30

How to automatically connect new servers to each other as they are added without confirmation?

Hello. The bottom line is this:
there are 5 servers, all of them were at least once connected to each other via ssh. Relationships look something like this:
1 - 2,3,4,5
2 - 1,3,4,5
3 - 1,2,4,5
4 - 1,2,3,5
5 - 1,2,3,4
These connections are necessary for rsync to work without errors. All this was done in the usual way: ssh [email protected], adding confirmation ( yes/no ), entering a password, voila: next time it will be possible to connect without confirmation to add to known_hosts.
And now the question itself: if I add the 6th server, should I also add it manually? Is there any alternative automatic way? It's just that if more than 10-20 of them are added, it will be problematic to sit with your hands and connect with each other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Michurin, 2017-10-15
@dmitrydeco

Ansible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question