D
D
DVoropaev2017-08-16 11:37:17
linux
DVoropaev, 2017-08-16 11:37:17

How to write a script to install rpm packages remotely via ssh?

1) The script asks for an ip address, login. password.
2)The script copies the rpm package to the remote host
3)The script installs this package.
Mandatory requirement - via ssh protocol.
Probably there are already similar solutions, but I could not google

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2017-08-16
@planc

ansible
https://serversforhackers.com/c/ansible-installati...
1) The script asks for an ip address, login. password.
stop using login and password
https://serversforhackers.com/c/creating-and-using...

V
Victor Taran, 2017-08-17
@shambler81

ssh easily runs commands on a remote server.
But if this is a one-time solution, then this method will do.
If you really have it on a massive scale, then ansible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question