D
D
Dmitry2016-04-21 17:03:03
linux
Dmitry, 2016-04-21 17:03:03

How to connect servers via SSH?

Hello. There is such a scheme:
There are 5 servers in total, one of them is "main" (it transfers files from its folder to the other 4 servers using rsync and scp). In order to connect via SSH to the desired server, you need to generate keys for it.
The following task arose: based on statistics, move files from one server to another, depending on factors. As I understand it, it will be necessary to connect each server with another, in total there are many options for specifying keys. Is it possible to get by with "little blood"? For example, when increasing the number of servers, so as not to constantly generate keys? Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2016-04-21
@dmitrydeco

"In order to connect via SSH to the desired server, you need to generate keys for it."
Not for him, but for the remote user.
You can generate one key pair and use the same key pair to connect to all servers.
The private key is on the main server, the public key is on the servers to connect to, from the remote user.

V
Vladimir Kuts, 2016-04-21
@fox_12

Generate one and add it to all servers.

A
Andrey Minisol, 2016-04-21
@AmadeyMinisol

or for example use ansible ( https://www.ansible.com )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question