Fabric is great, but isn't 100% compatible with Python 3. There is Fabric3, which does work, but sometimes you don't want to have to issue `fab <something>` but instead want to issue a command as part of a larger bit of Python.

I ran into this situation today where I wanted to issue a few commands over ssh to a remote host as part of a Click command I'm building to do some ops automation here at REVSYS.

It's probably not perfect in terms of error handling, but it sure is simple! Here is all you need to do: