[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quick question
[Thread Prev] | [Thread Next]
- Subject: Re: Quick question
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 08 Oct 2015 18:43:53 +0200
- To: libssh@xxxxxxxxxx
On Thursday 08 October 2015 14:06:34 lars van ruiten wrote: > Allright after studying the RFC's again I believe that this is the right way > to do it: 1. Start SSH session2. Request listening on remote port3. While > Forever 1. Wait untill incoming channel and load in an ssh_channel > 2. while connection not closed 1. Read reverse > channel and write to Local Socket 2. Read Local socket and > write to reverse channel 3. Close Channel That is exactly what my > while loop does. After I have closed the channel it starts waiting for a > new one. When a connection arrives my code continues to the loop where it > starts forwarding the data between the channel and the socket, but there > there never seems to be any data on the channel. This has kept me occupied > for over a day now, and it's really weird that everything works fine on the > first connection but not on the second. If I am missing a step in the list > above please tell me. If there is a mistake in my code I will probably be > able to figure it out myself. Kind regards, Lars van Ruiten Did you enable debug on the server side to see if the channel is really closed?
RE: Quick question | lars van ruiten <larsvanruiten@xxxxxxxxxxx> |
Quick question | lars van ruiten <larsvanruiten@xxxxxxxxxxx> |
Re: Quick question | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
RE: Quick question | lars van ruiten <larsvanruiten@xxxxxxxxxxx> |