I needed a framework
to be able to open remote sessions on (Unix-based) servers and execute commands remotely (if possible as% with% same).
Does anyone know of any and mature that can serve this purpose?
Main purpose:
What happens is that I have a web application running on a server and I need to collect data on other servers. This data is preprocessed in% w / w% w / w% and saves the results to a file.
There are more than 10 servers, and it would be great / ideal that running this root
on each of the servers be done from the application instead of running it per machine and then from the application read the result. The idea is to open a session for each of the machines and run the pre-processing and then read the results.
What I have:
At the moment I use shell
script
and it has given me a serious problem, I can not execute existing scripts on the servers whose operations involve writing (creating new files) on the system.
Note: My main problem at the moment is that running script
does not run successfully, but when I go directly to the machine it runs perfectly.
As for permissions I have also analyzed and to remove doubts permissions is everything for everyone (777).
I think (hopefully it is not the result of my despair) that the problem is with jsch
and would like to move and move to another where someone already has some experience.