www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: keepalive support

Re: keepalive support

From: Simon Josefsson <simon_at_josefsson.org>
Date: Thu, 28 Jan 2010 14:39:47 +0100

Simon Josefsson <simon_at_josefsson.org> writes:

> Connect to it with a client like the one below, you will see OpenSSH
> terminate the connection after 3 seconds like this:
>
> Timeout, client not responding.

For completeness, if you run sshd with -d the debug output actually
looks like this:

...
debug2: channel 0: request keepalive_at_openssh.com confirm 1
debug2: channel 0: request keepalive_at_openssh.com confirm 1
debug2: channel 0: request keepalive_at_openssh.com confirm 1
Timeout, client not responding.

You can easily reproduce this by running the example code with your
system's libssh2 (assuming it is an old version, which will hold for
some time yet...):

jas_at_mocca:~/src/libssh2/example master$ LD_PRELOAD=/usr/lib/libssh2.so.1 ./ssh2_idle 127.0.0.1 root

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-28

the libssh2 team