Python library for executing local Python scripts on remote machines.
Use the package manager pip to install foobar.
pip install python-ssh-exec
pyssh -f ~/path/to/script.py -h SERVER_ADDRESS -p PORT -u USERNAME -pw PASSWORD
User, password and port are optional fields. You can also set environment variables instead of including them:
SSH_USER
and SSH_PASSWORD
. port
is defaulted to 22.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.