A Python script to run commands over SSH
When working with remote servers, I needed to run some commands frequently and sometimes save the command output for later references and debugging. Manually running the commands over ssh each time was quite cumbersome. So I started using Python’s paramiko library to automate some of the workflow. Having a wrapper over the paramiko library makes it much easier to customize with additional functionalities than working directly with the library calls.