Set connection timeouts?

breno oainikusama at gmail.com
Fri Jan 2 12:41:00 EST 2009


On Tue, Dec 30, 2008 at 7:24 PM, Kārlis Repsons
<karlis.repsons at gmail.com> wrote:
> Hello,
> Perhaps you could give some information here or redirect me, because it was
> not clear while reading manuals: how can connection timeout be set for sshd?
> Problem is, when some system is hibernated and it resumes, connections are
> dead. Mostly I made a successful workaround, but would be nice to know...

Could you be a little more specific on what have you already tried?
sshd_config's "ClientAliveInterval" and "ClientAliveCountMax" options
should do the trick. You might also want to take a look at
"TCPKeepAlive"

http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&sektion=5

> Also, which version of ssh(d) support df on sshfs?
>

I don't think this is related to OpenSSH - you might try
http://fuse.sourceforge.net/sshfs.html

This is what a simple lookup on their faq returned:

--------------8<--------------
-Why does df return strange values on partitions mounted via sshfs?

Because the SFTP protocol doesn't have a statfs operation.

OpenSSH 5.1 added support for a statfs extension to the SFTP protocol,
and from version 2.1 sshfs can make use of this extension. So df will
work if your SFTP server is OpenSSH > 5.1 and your sshfs version is >
2.1.
--------------8<--------------


Cheers,

-b


More information about the openssh-unix-dev mailing list