Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 752 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 752 Bytes

pycm

Simple wrapper around ssh implementing put, get, exe via ControlMaster multiplexing.

Generaly used for same tasks as paramiko or fabric but act as real user and so better handle complex ssh_config files with long redirect chains especially

Usage

> git clone git://github.com/flashvoid/python-controlmaster.git pycm
from pycm import ControlMaster

ssh = ControlMaster("customhost")
ssh.connect()
ssh.put(src,dst)
ssh.exe(cmd)
ssh.get(src,dst)
ssh.disconnect()

TODO

  • Think of a way to suppress all this trash on stdout