sshCommands is a fabric file NOT a python file. To run, execute fab -f sshCommands.py The hosts are currently specified in the env.hosts[] list and can be changed.