Skip to content

Instantly share code, notes, and snippets.

@jjam3774
jjam3774 / remote.py
Last active November 16, 2018 21:43
A python version of the ruby script that allows you to execute the same command on multiple servers.
#!/usr/bin/python
import paramiko
import getpass
class Remote():
def __init__(self, hostfile, username, commands):
self.hostfile = hostfile
self.username = username