Skip to content

Instantly share code, notes, and snippets.

@aculich
aculich / forwarder.py
Created Nov 28, 2011
SSHForwarder class for use with the python ssh module: http://pypi.python.org/pypi/ssh
View forwarder.py
#!/usr/bin/env python
# This code is licensed according to the main package that it depends on:
# http://pypi.python.org/pypi/ssh
# License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
# http://www.gnu.org/licenses/lgpl.html
import sys, os, os.path
import select
import SocketServer