Skip to content

Commit

Permalink
chore: update sshd_config
Browse files Browse the repository at this point in the history
update ChannelTimeout config to implement auto close inactive connections

Log:
  • Loading branch information
zhousc11 committed Dec 7, 2024
1 parent 5a2b79b commit 401596e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
openssh (1:9.7p1-4deepin3) unstable; urgency=medium

* Add ChannelTimeout config in sshd_config as upstream uses it to close
inactive connections.

-- zhoushicheng <[email protected]> Fri, 06 Dec 2024 17:17:20 +0800

openssh (1:9.7p1-4deepin2) unstable; urgency=high

* Disable logging in sshsigdie.
Expand Down
4 changes: 2 additions & 2 deletions debian/patches/deepin-ssh-connect-idle-timeout.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Last-Update: 2022-05-19
#Compression delayed
-#ClientAliveInterval 0
-#ClientAliveCountMax 3
+ClientAliveInterval 900
+ClientAliveCountMax 1
+# set inactive timeout for shell & subsystem connections
+ChannelTimeout session:shell=900 session:subsystem*=900
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100

0 comments on commit 401596e

Please sign in to comment.