Skip to main content
9 events
when toggle format what by license comment
Dec 14, 2022 at 16:04 comment added Kusalananda Nothing in this answer seems to indicate that SSH would terminate due to idleness.
S Dec 14, 2022 at 15:57 history suggested Adam Ježek CC BY-SA 4.0
Replaced broken link to sshd manpage, slighty edited formatting to keep the answer looking same after edit
Dec 14, 2022 at 15:34 review Suggested edits
S Dec 14, 2022 at 15:57
Aug 15, 2020 at 2:32 comment added MestreLion @PiotrDobrogost: just connect to any machine with default settings and no firewalls, let it idle, and it will eventually drop by inactivity. I've never measured how long it takes, but I've seen such idle disconnection occurs.
Mar 12, 2018 at 22:11 history edited G-Man Says 'Reinstate Monica' CC BY-SA 3.0
Improved formatting; added links.
Nov 13, 2017 at 8:21 comment added Piotr Dobrogost @BenCrowell And yet we know that the time interval has some finite value by default. What time interval and how do you know this?
Apr 8, 2015 at 20:09 comment added user39248 The quoted text says that the default for ClientAliveInterval is 0, which means that it doesn't define a time interval for which a connection stays open. And yet we know that the time interval has some finite value by default. Therefore it seems that there must be some other parameter that sets how long the connection stays open by default. If my analysis above is correct, then suppose both server and client are linux machines running openssh, and both are using all the defaults. In this case which side sets the default, what is its value, and where is it set?
Aug 15, 2014 at 15:31 comment added Banjer Correct me if wrong, but if there was no firewall in between me and the machine (w/ default configs), then I'd never be disconnected? I know our firewall drops idle TCP connections after 60 minutes, so that's where the closing idle connections is happening. I just wanted to check and see if OpenSSH itself explicitly closes sessions. I think the answer is No, openssh does not explicitly close idle connections, but firewalls typically do. The settings mentioned in your answer actually help to persist the connection or to properly terminate the session if it sees it's been dropped.
Aug 15, 2014 at 14:24 history answered jordanm CC BY-SA 3.0