Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

What is ppsh and use of ppsh tool?

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
Rajesh Kumar
Follow me