ssh_channel_read() should return plain text. I use it run a bash session
and I get the same output as a console.
have you run the sample?
http://api.libssh.org/master/libssh_tutor_forwarding.html
On 08/05/12 12:37, Burak Alkan wrote:
Hello Paulo,
What I want to do is access my squid instance running on port 3128 with the
same server
my opensshd to use it as a proxy server. Now I can accomplish this using
something like this on command line;
ssh -L 3128:localhost:3128 -fN [email protected]
This way ssh is connecting my browser(local) and my squid proxy server(remote)
using a secure tunnel.
What I want to do is exactly the same without running any system commands or
ssh client, so that I will
be able to diagnose any problems with the tunneling or connection. Using
libssh, I was able to send requests
to squid over a channel, but somehow firefox unable to understand the
answer(encoding error it says).
Am I doing wrong something during the data transmission?How can I control the
data access between these 2?
Regards
On 08.May.2012, at 18:18, Paulo R. Panhoto wrote:
Forgive my limited experience, but I've never seen HTTP over SSH before. Are
you sure you didn't want SSL /TLS?
On 08/05/12 11:19, Burak Alkan wrote:
Hello all,
In my application I opened and forwarded a channel and then sent an http
request to other side of the
channel (squid).As an answer I read some data with ssh_channel_read(), my
question is when I read from ssh_channel_read(),
what kind of data is that?
Is it encrypted or just compressed? Do I need to decrypt data coming out of the
ssh_channel_read or
sister functions before using it?
Cheers