Answer the question
In order to leave comments, you need to log in
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
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...
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 questionAsk a Question
731 491 924 answers to any question