Add keep-alive to ssh connections.
This commit is contained in:
committed by
Tom Alexander
parent
43f3c1f955
commit
e75c4087c3
@@ -47,5 +47,9 @@
|
||||
source = ./files/ssh_config;
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh.extraConfig = ''
|
||||
Include ${./files/ssh_config_global}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +37,3 @@ Host hydra
|
||||
Host i_only_boot_zfs
|
||||
HostName 127.0.0.1
|
||||
Port 60022
|
||||
|
||||
Host *
|
||||
Compression yes
|
||||
|
||||
4
nix/configuration/roles/ssh/files/ssh_config_global
Normal file
4
nix/configuration/roles/ssh/files/ssh_config_global
Normal file
@@ -0,0 +1,4 @@
|
||||
Host *
|
||||
Compression yes
|
||||
# ServerAliveInterval 240
|
||||
# TCPKeepAlive yes # Default is yes
|
||||
@@ -4,6 +4,3 @@ Host hydra
|
||||
User nixworker
|
||||
IdentitiesOnly yes
|
||||
IdentityFile /persist/manual/ssh/root/keys/id_ed25519
|
||||
|
||||
Host *
|
||||
Compression yes
|
||||
|
||||
Reference in New Issue
Block a user