Date: Fri, 22 Mar 2002 12:32:40 +0200 From: "Toomas Aas" <toomas.aas@raad.tartu.ee> To: "James E. Pace" <jepace@pobox.com>, freebsd-questions@freebsd.org Subject: Re: ssh session closing? Message-ID: <200203221033.g2MAXSI17062@lv.raad.tartu.ee> In-Reply-To: <20020320153932.Q57923-100000@tigger.pacehouse.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi James! On 20 Mar 02 at 15:41 you wrote: > If I leave ssh sessions to my system idle for a while, they close. > How can I keep this from happening? If you add 'KeepAlive yes' to /etc/ssh/sshd_config (assuming ssh from base system) on the server, maybe this will help? I have found cases where it doesn't help. Specifically, when i ssh from behind a firewall to a host outside the firewall. I've heard that some firewalls have a habit of "eating" keepalive packets. In these cases I've found it helpful to use ssh2 protocol. After that my ssh sessions stay alive indefinitely even if sshd on server has 'KeepAlive no' and firewall has timeout for idle tcp connections. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * It's better to be rich and healthy than poor and sick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203221033.g2MAXSI17062>