Re: OpenSSH not closing idle sessions.

2019-04-09 Thread Thomas Pircher
Greg Wooledge wrote: > > I suggest reading what ClientAliveCountMax and ClientAliveInterval > actually do in sshd_config(5). Take particular note of the word > "unresponsive". It is not the same as "idle". Yes, you are right, this setting won't disconnect idle sessions. So I guess it's mostly us

Re: OpenSSH not closing idle sessions.

2019-04-09 Thread mick crane
On 2019-04-08 18:25, timothylegg wrote: Ideas? I've not really used screen but isn't it that you want to start where you left off ? mick -- Key ID4BFEBB31

Re: OpenSSH not closing idle sessions.

2019-04-09 Thread Greg Wooledge
On Tue, Apr 09, 2019 at 04:01:20PM +0100, Thomas Pircher wrote: > > > ClientAliveInterval 5 > > This is the setting that the STIG ID RHEL-07-040320 in [2] suggests to > edit. > > Thomas > > [1] https://iase.disa.mil/stigs > [2] > https://rhel7stig.readthedocs.io/en/latest/medium.html#v-72237-al

Re: OpenSSH not closing idle sessions.

2019-04-09 Thread Thomas Pircher
Greg Wooledge wrote: > Most people want the exact opposite of that. I don't really know the OP's rationale, but terminating an idle ssh session is a step in the requirements/guidelines (STIG [1]) for hardening systems for the US Department of Defense. > Basically, what you're asking for is direct

Re: OpenSSH not closing idle sessions.

2019-04-09 Thread David Wright
On Mon 08 Apr 2019 at 13:39:36 (-0400), Greg Wooledge wrote: > On Mon, Apr 08, 2019 at 12:25:28PM -0500, timothylegg wrote: > > I need to have the session expire and the ssh client terminate after > > an idle time. > > Most people want the exact opposite of that. > > Basically, what you're asking

Re: OpenSSH not closing idle sessions.

2019-04-09 Thread Dan Ritter
Richard Hector wrote: > On 9/04/19 12:14 PM, timothylegg wrote: > > I have two residences and one > > has a port forwarding issue. I want to make an SSH tunnel to the > > other site. If I am at one place for multiple weeks, it's asking too > > much for the SSH tunnel to stay live that long (I've

Re: OpenSSH not closing idle sessions.

2019-04-08 Thread Richard Hector
On 9/04/19 12:14 PM, timothylegg wrote: > I have two residences and one > has a port forwarding issue. I want to make an SSH tunnel to the > other site. If I am at one place for multiple weeks, it's asking too > much for the SSH tunnel to stay live that long (I've seen many > complaints of SSH co

Re: OpenSSH not closing idle sessions.

2019-04-08 Thread Kushal Kumaran
timothylegg writes: > I'm the only user that will be angry at being disconnected. There is > no easy way to explain the reasoning; I've rewritten this paragraph > three times because it was too long. I have two residences and one > has a port forwarding issue. I want to make an SSH tunnel to t

Re: OpenSSH not closing idle sessions.

2019-04-08 Thread timothylegg
I'm the only user that will be angry at being disconnected. There is no easy way to explain the reasoning; I've rewritten this paragraph three times because it was too long. I have two residences and one has a port forwarding issue. I want to make an SSH tunnel to the other site. If I am at one

Re: OpenSSH not closing idle sessions.

2019-04-08 Thread Greg Wooledge
On Mon, Apr 08, 2019 at 12:25:28PM -0500, timothylegg wrote: > I need to have the session expire and the ssh client terminate after > an idle time. Most people want the exact opposite of that. Basically, what you're asking for is directly hostile to any kind of sane operation of a computer. > Cl

OpenSSH not closing idle sessions.

2019-04-08 Thread timothylegg
Debian 9 - Installed yesterday on two 64-bit VMs In /etc/ssh/ssh_config there are two parameters, of which I am citing sshd_config(5) man page: ClientAliveInterval - Sets a timeout interval in seconds after which if no data has been received from the client, sshd(8) will send a message through t