This python script allow you execute file with list of bash commands using ssh.
Script was written on python 3 and using paramiko
library for ssh.
For installing paramiko
you can use:
pip install paramiko
For using you need create own file with bash commands list. Also you need write login information at the first line in file. Login information must require following rules:
ip-address,user-name,password
Example:
192.168.0.100,admin,secret
From the second line start commands, each in own line.
For starting execute just run script:
python3 exec_by_ssh.py <commands input file>
This script was writen with MIT licence.