[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with OpenSSH Keep Alive
[Thread Prev] | [Thread Next]
- Subject: Re: Help with OpenSSH Keep Alive
- From: g4-lisz@xxxxxxxxxxxx
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 25 Apr 2018 03:42:28 +0200
- To: libssh@xxxxxxxxxx
On 24.04.2018 23:25, 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? > > > > What a coincidence! I wrote more or less the same client only a few days ago.... As long as you see this messages and the server is not closing the connection, all is fine. The libssh logs that it can't do anything with the packet of this type, but it also sends this message back to the server - which is enough to keep alive the connection.
Help with OpenSSH Keep Alive | "Duff, Rob (Nokia - US/Plano)" <rob.duff@xxxxxxxxx> |