[paramiko] Paramiko reverse proxy
David Guerizec
david at guerizec.net
Sat Feb 16 02:24:41 PST 2008
Hello David,
Le Friday 15 February 2008 13:57:17 David Mills, vous avez écrit :
> Hi,
>
> I'm currently writing a small firewall busting script to use for
> technical support for some of my friends.
>
> The idea is that They launch a script which connects to one of my
> servers via ssh and opens a port-forward back to their own machine, then
> I connect to the forwarded port on my server, and gain ssh access to
> their machine that way.
>
> The only problem, is that I can't seem to get my script to detect when
> the paramiko channel has data to send.
I didn't try your script, but you may want to call channel.setblocking(0) at
the beginning of ForwardHandler(), so that if there is less than 1024 bytes
in the recieve buffer, it won't block on channel.recv().
Hope that helps.
Best regards,
David
--
David Guerizec <david at guerizec.net>
http://sshproxy-project.org/
irc://irc.freenode.net/#sshproxy-project
More information about the paramiko
mailing list