Coding / Programming Videos

Post your favorite coding videos and share them with others!

Execute Python Commands Over SSH – matty jones – Medium

Source link

This script can be used to execute a single command or a script that is located on a remote machine. The first argument is a text file containing a list of servers that you wish to execute the command on. The next arguments are for the ssh user/password. You can also hard code these into a file to avoid typing them or for allowing you to execute this script automatically. The only dependency is pexpect and this will run in any Python version > 2.4. The latest version can be found on GitHub

Source link


Leave a Reply

Please Login to comment
Notify of
Translate »