[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec command trough ssh tunnel


On Monday 20 April 2015 17:00:29 Raghaw Shukla wrote:
> I using libssh to write command to remote PC.So its like (MY PC->Linux
> MAchine->Remote PC).iam able to to do port forwarding but when i try to
> exeute command let say ls -l its just wait .

The way you implement it doesn't work at all. I've described how to do it some 
days ago. Also read the RFC and the chapter about port forwarding in our 
Tutorial.

The description how to do it is here:

https://www.libssh.org/archive/libssh/2015-04/0000010.html

It would be great if someone could extend the tutorial section with a 
socketpair(2) example.


	-- andreas


http://man.cx/socketpair

-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


Follow-Ups:
Re: exec command trough ssh tunnelRaghaw Shukla <raghaw.wesee@xxxxxxxxx>
References:
[no subject]Raghaw Shukla <raghaw.wesee@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org