H
H
Harbid Abu Marhamedoff2019-02-09 22:28:54
SSH
Harbid Abu Marhamedoff, 2019-02-09 22:28:54

How to replace fileserver so as not to reconfigure ssh keys?

There is a server from which there is replication to other servers using rsync over ssh. There was a need to rearrange and replace it so as not to break the replication process. In addition to replication via ssh, nothing is involved there. Will it be enough to copy all the contents of /etc/ssh from the old server to the new one, change ip and reboot the new server so that clients connect to it and continue working without questions about the changed server?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2019-02-09
@dimonchik2013

well, the keys are usually in user dirs, so it's not enough

P
pfg21, 2019-02-09
@pfg21

read man ssh the FILES section describes which files are used for keys.
well, man ssh_config if the system is being knocked on.
save them and deploy to a new server.

S
Saboteur, 2019-02-10
@saboteur_kiev

If the IP does not change, then it will be enough to save the host keys (/etc/ssh/ssh_host_*) and the actual keys of the users under which your replication takes place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question