P
P
PoliceDogs2018-05-01 23:01:56
linux
PoliceDogs, 2018-05-01 23:01:56

How to transfer ssh commands from one server to another?

Hello, how to transfer ssh commands from one server to another?
Let's say there are 2 servers: server1 and server2
How to make it so that all the commands that are typed in the terminal of server1 are "transferred" and executed on server2 and that after executing the commands on server2, server1 receives the "execution result"?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
planc, 2018-05-01
@planc

when you need to set up a bunch of servers, use ansible or similar software

S
Saboteur, 2018-05-01
@saboteur_kiev

rsh [email protected] "command"

M
moropsk, 2018-05-01
@moropsk

https://habr.com/post/331348/

R
Reversaidx, 2018-05-02
@Reversaidx

If you need to perform the same type of tasks on different servers, then I recommend mastering Ansible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question