ppsh is developed for Pull and Push via SSH
PPSH is a Ansible-like Tool and Library written in Go. Ansible is a radically simple IT automation system but it is written in Python and needs Python installed and sometime annoyed configurations, so here comes PPSH. You just need the precompile bin file and a well defined YAML file to run it, and for simple tasks you even just run it with the well defined arguments. PPSH is also a library and can be easily integrated into your application
Example of ppsh command?
./app -hosts "192.168.1.101;192.168.1.102" -cmds "echo hello && echo good" -u root -w 123456
./app -hosts "192.168.1.101;192.168.1.101" -cmds "echo hello && echo good" -u root -w 123456 -out-format json
./app -ip-range "192.168.1.101-192.168.1.104" -cmds "echo hello && echo good" -u root -w 123456
./app -ip-range "192.168.1.101-192.168.1.104" -cmds "echo hello && echo good" -u root -w 123456 -out-format json
./app --hosts "localhost;localhost" --port 50001 --cmds "echo good;echo hello" --user root --password 123456 --format json
Reference
- https://github.com/haotrr/ppsh
Latest posts by Rajesh Kumar (see all)
- Gradle versions, their supported Java versions, and unsupported Java versions - December 23, 2024
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024