[paramiko] Paramiko reverse proxy

David Mills d.mills at guesny.net
Sun Feb 17 09:39:22 PST 2008


David

Than you for the idea, but the blockage happens in the select.select 
statement.

Here's the text output of my script when I try to connect through it 
(All the statements are in the code).
'Into While Loop' is printed just before the select.select and 'Got 
something' is printed just after.

David

    Handler called
    Into while loop
    Got something
    Local:
    Recieving data
    Recieved data: 40
    SSH-2.0-OpenSSH_4.6p1 Debian-5ubuntu0.1

    Sending Recieved data
    Sent Recieved data
    Checking for errors
    Looping
    Into while loop



David Guerizec wrote:
> 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
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lag.net/pipermail/paramiko/attachments/20080217/2150245a/attachment.htm 


More information about the paramiko mailing list