Skip to main content
13 events
when toggle format what by license comment
Oct 24 at 13:15 comment added n0099 Related: serverfault.com/questions/1162826/…
Nov 19, 2024 at 18:51 history edited Kamil Maciorowski CC BY-SA 4.0
added 32 characters in body
Nov 19, 2024 at 18:32 history edited Kamil Maciorowski CC BY-SA 4.0
added 238 characters in body
Jan 24, 2024 at 6:59 comment added Kamil Maciorowski @karkator Maybe StopIdleSessionSec= in /etc/systemd/logind.conf (already mentioned). For now I cannot think of anything else that wouldn't be a foggy idea of an unreliable contraption built with questionable hacks. I will think about it but I cannot promise anything. Anyway, ClientAlive* you asked about are not for this, regardless of the version of sshd.
Jan 24, 2024 at 6:35 comment added karkator any other ways / workaround we can achieve this ?
Jan 24, 2024 at 5:00 comment added Kamil Maciorowski @karkator Sigh… You are using OpenSSH_7.2p2. My answer clearly states the relevant options are "relatively new inventions (OpenSSH 9.2, 2023-02-02)". You need 9.2 or later, you have 7.2. Your sshd does not know these options at all. This is why you got Bad configuration option for each.
Jan 24, 2024 at 2:07 comment added karkator I have also given output for sshd -T && echo OK in the question , please review it !
Jan 24, 2024 at 1:45 comment added karkator if i give ssh -v on linux to establish a ssh connection on the host i am getting debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.10 ssh_exchange_identification: read: Connection reset by peer and output for sshd -T && echo OK is /etc/ssh/sshd_config: line 119: Bad configuration option: ChannelTimeout /etc/ssh/sshd_config: line 120: Bad configuration option: UnusedConnectionTimeout /etc/ssh/sshd_config: terminating, 2 bad configuration options
Jan 23, 2024 at 10:57 comment added Kamil Maciorowski @karkator On the server, does sudo sshd -T && echo OK print OK at the end? If not, what exactly does it print?
Jan 23, 2024 at 9:09 comment added karkator Thanks for the quick reply , but when we include ChannelTimeout *=1m UnusedConnectionTimeout 1m The ssh simply refuses our connection by giving ssh_exchange_identification: Connection closed by remote host
Jan 22, 2024 at 16:43 history edited Kamil Maciorowski CC BY-SA 4.0
added 4 characters in body
Jan 22, 2024 at 16:30 history edited Kamil Maciorowski CC BY-SA 4.0
added 93 characters in body
Jan 22, 2024 at 16:19 history answered Kamil Maciorowski CC BY-SA 4.0