Skip to content

Commit 1156fe5

Browse files
committed
fix: anchor sshd ClientAliveInterval grep to ^, skipping Ubuntu's commented-out default
1 parent d5a14fe commit 1156fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/limatemplate/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fi
5656
# sshd: evict idle sessions after 30s (10 probes × 3s) so interrupted
5757
# klimax commands don't leave zombie sshd-session processes that exhaust
5858
# vsock connection slots and cause "handshake failed: EOF" on new dials.
59-
if ! grep -q 'ClientAliveInterval' /etc/ssh/sshd_config; then
59+
if ! grep -q '^ClientAliveInterval' /etc/ssh/sshd_config; then
6060
cat >> /etc/ssh/sshd_config <<EOF
6161
6262
# Added by klimax provisioner

0 commit comments

Comments
 (0)