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

Re: Returning data from ssh_channel_read()


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  username@xxxxxxxxxx

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
> 
> 


Follow-Ups:
Re[2]: Returning data from ssh_channel_read()aleksey <joomcod@xxxxxxxxx>
Re: Returning data from ssh_channel_read()"Paulo R. Panhoto" <paulo.panhoto@xxxxxxxxx>
References:
Returning data from ssh_channel_read()Burak Alkan <mburakalkan@xxxxxxxxx>
Re: Returning data from ssh_channel_read()"Paulo R. Panhoto" <paulo.panhoto@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org