Add keep-alive to ssh connections.

This commit is contained in:
Tom Alexander
2026-01-26 19:13:20 -05:00
committed by Tom Alexander
parent 43f3c1f955
commit e75c4087c3
6 changed files with 277 additions and 99 deletions

View File

@@ -47,5 +47,9 @@
source = ./files/ssh_config;
};
};
programs.ssh.extraConfig = ''
Include ${./files/ssh_config_global}
'';
};
}

View File

@@ -37,6 +37,3 @@ Host hydra
Host i_only_boot_zfs
HostName 127.0.0.1
Port 60022
Host *
Compression yes

View File

@@ -0,0 +1,4 @@
Host *
Compression yes
# ServerAliveInterval 240
# TCPKeepAlive yes # Default is yes

View File

@@ -4,6 +4,3 @@ Host hydra
User nixworker
IdentitiesOnly yes
IdentityFile /persist/manual/ssh/root/keys/id_ed25519
Host *
Compression yes