From 2a4b3ec3e62121d1359179ababc9803cc55275e5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 8 Nov 2020 22:04:30 +0000 Subject: [PATCH] Increase timeout for SSH sessions Stll check relatively often the client is still there, but check many times so the connection stays open a decent amount of time. Especially useful for long-running commands. --- ansible/roles/base/files/sshd_config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/base/files/sshd_config b/ansible/roles/base/files/sshd_config index bd05525..1f79539 100644 --- a/ansible/roles/base/files/sshd_config +++ b/ansible/roles/base/files/sshd_config @@ -25,8 +25,8 @@ AuthenticationMethods publickey PermitRootLogin no # Client timeout -ClientAliveInterval 600 -ClientAliveCountMax 0 +ClientAliveInterval 60 +ClientAliveCountMax 100 # Compression (only after authentication) Compression delayed