I can't get any callback called either with the example or my code.

Here's my test:
my ssh server running on 192.168.0.96
in a VM: ssh -vND 1234 [email protected]
in the same VM: http_proxy=localhost:1234 wget [a webserver on my network]

nothing is happening on the server side after I return SSH_AUTH_SUCCESS in the 
auth callback.
on the ssh client:
Local connections to LOCALHOST:1234 forwarded to remote address socks:0
Local forwarding listening on ::1 port 1234
channel 0: new [port listener]
Local forwarding listening on 127.0.0.1 port 1234
channel 1: new [port listener]
Entering interactive session
Connection to port 1234 forwarding to socks port 0 requested.
channel 2: new [dynamic-tcpip]
channel 2: free: dynamic-tcpip, nchannels 3
Connection to port 1234 forwarding to socks port 0 requested.
channel 2: new [dynamic-tcpip]
channel 2: free: dynamic-tcpip, nchannels 3
Connection to port 1234 forwarding to socks port 0 requested.
channel 2: new [dynamic-tcpip]
channel 2: free: dynamic-tcpip, nchannels 3
...

I was expecting to recieve a ssh_channel_open_request_session_callback() or 
even a ssh_bind_message_callback but nothing.

Again I'm not doing anything really different than the example I really don't 
know where I'm wrong in the process.

(btw if i register a callback throught ssh_set_message_callback in the 
auth_password_callback and i use ssh -l I've got something, but not with ssh -D)

Thanks for your time and your patience!

-- 
Anne



> Message du 14/08/13 10:59
> De : "Andreas Schneider" 
> A : [email protected], [email protected]
> Copie à : 
> Objet : Re: Dynamic-tcpip forwarding
>

> On Wednesday 14 August 2013 10:43:11 you wrote:
> > I've been busy on other part of the project sorry for the late awnser.
> > I've download the new version (0.6.0rc 1) and I'm working on it but I can't
> > find the example you're talking about. I think I'm about to get things
> > working my way but if there is an example I would like to check if I'm not
> > mistaken.
> 
> Take a loot at:
> 
> http://git.libssh.org/projects/libssh.git/tree/examples/samplesshd-cb.c
> 
> 
> -- andreas
> 
> -- 
> Andreas Schneider GPG-ID: F33E3FC6
> www.cryptomilk.org [email protected]
> 
> 
> 

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

Reply via email to