Re: Executing command over forwarded port

2015-07-16 Thread Andreas Schneider
On Thursday 16 July 2015 12:07:06 Raghaw Shukla wrote: > In point C the new session should be from local PC to Remote PC? Here is a step by step description how I would implement it. a) Create a ssh session and connect b) Create a forward channel c) Create a socketpair() d) One end of the socketp

Re: Using ssh_bind_set_callbacks

2015-07-16 Thread Aris Adamantiadis
Hi, Excellent idea. You don't need to set it non blocking. Also check for POLLOUT|POLLIN instead. POLLIN will trigger on linux but some OS (I think some BSD and windows) use POLLOUT for new connections. Aris Le 16/07/15 08:22, Игорь Коваленко a écrit : > I've coped with the problem a following w

Re: Executing command over forwarded port

2015-07-16 Thread Raghaw Shukla
Thanks Andreas.But this iam implementing on Windows which does not support socketpair(). On Thu, Jul 16, 2015 at 1:11 PM, Andreas Schneider wrote: > On Thursday 16 July 2015 12:07:06 Raghaw Shukla wrote: > > In point C the new session should be from local PC to Remote PC? > > Here is a step