<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
David<br>
<br>
Than you for the idea, but the blockage happens in the select.select
statement.<br>
<br>
Here's the text output of my script when I try to connect through it
(All the statements are in the code).<br>
'Into While Loop' is printed just before the select.select and 'Got
something' is printed just after.<br>
<br>
David<br>
<tt><br>
</tt>
<blockquote><tt>Handler called</tt><br>
<tt>Into while loop</tt><br>
<tt>Got something</tt><br>
<tt>Local:</tt><br>
<tt>Recieving data</tt><br>
<tt>Recieved data: 40</tt><br>
<tt>SSH-2.0-OpenSSH_4.6p1 Debian-5ubuntu0.1</tt><br>
<br>
<tt>Sending Recieved data</tt><br>
<tt>Sent Recieved data</tt><br>
<tt>Checking for errors</tt><br>
<tt>Looping</tt><br>
<tt>Into while loop</tt><br>
</blockquote>
<br>
<br>
David Guerizec wrote:
<blockquote cite="mid:200802161124.41987.david@guerizec.net" type="cite">
<pre wrap="">Hello David,
Le Friday 15 February 2008 13:57:17 David Mills, vous avez écrit :
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
<br>
</body>
</html>