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

RE: Help with OpenSSH Keep Alive


The discussion thread sounds like it is what I need.  

I saw that g4-lisz was able to solve it by adding the session to the event.  Could you post the pseudo code example with this change in place?

Thanks so much!
Rob


-----Original Message-----
From: Andreas Schneider [mailto:asn@xxxxxxxxxxxxxx] 
Sent: Wednesday, April 25, 2018 12:41 AM
To: libssh@xxxxxxxxxx
Subject: Re: Help with OpenSSH Keep Alive

On Tuesday, 24 April 2018 23:25:06 CEST Duff, Rob (Nokia - US/Plano) wrote:
> Hello,
> 
> I am writing a client app which connects to an OpenSSH server, and 
> opens a forwarding tunnel, then waits for another application to send 
> requests, forwards those to the tunnel, and returns responses.  
> Apparently, the server is sending global keep alive messages, and the 
> my client is not responding to them.
> 
> [2018/04/24 16:06:34.843907, 2] ssh_packet_global_request:  Received 
> SSH_MSG_GLOBAL_REQUEST packet [2018/04/24 16:06:34.843907, 2]
> ssh_packet_global_request:  UNKNOWN SSH_MSG_GLOBAL_REQUEST 
> keepalive@xxxxxxxxxxx 1 [2018/04/24 16:06:34.844907, 1] ssh_packet_process:
>  Couldn't do anything with packet type 80
> 
> Is there any sample/example code for both registering a callback to 
> handle these keepalives, and also using the polling context mechanism?

We just had this question a few days ago (April 9th).

https://www.libssh.org/archive/libssh/2018-04/0000001.html


I'm still hoping someone will improve the docs :-) (hint)


	Andreas

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




Follow-Ups:
Re: Help with OpenSSH Keep Aliveg4-lisz@xxxxxxxxxxxx
References:
Help with OpenSSH Keep Alive"Duff, Rob (Nokia - US/Plano)" <rob.duff@xxxxxxxxx>
Re: Help with OpenSSH Keep AliveAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org