aboutsummaryrefslogtreecommitdiffstats
path: root/roles/shared.nix
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2026-03-01 06:12:53 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2026-03-01 06:12:53 +0200
commit8fe618c916cafa3b164667bfc618a463490a9cbc (patch)
tree95588783b9c92164be620e8587b16fcf61b70b17 /roles/shared.nix
parent59c3a89607d302b3c14cb20e26db9ba98e867bc7 (diff)
downloadnixos-8fe618c916cafa3b164667bfc618a463490a9cbc.tar.zst
Update openssh config
Diffstat (limited to '')
-rw-r--r--roles/shared.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/roles/shared.nix b/roles/shared.nix
index 7d357a4..602cace 100644
--- a/roles/shared.nix
+++ b/roles/shared.nix
@@ -718,7 +718,6 @@
enable = true;
openFirewall = true;
settings = {
- UseDns = true;
AllowUsers = [ "petri" ];
KexAlgorithms = [
"curve25519-sha256@libssh.org"
@@ -747,9 +746,9 @@
PasswordAuthentication = false;
};
extraConfig = ''
- AllowAgentForwarding no
- AllowTcpForwarding no
- ClientAliveCountMax 0
+ AllowAgentForwarding yes
+ AllowTcpForwarding yes
+ ClientAliveCountMax 3
ClientAliveInterval 300
LoginGraceTime 60
MaxAuthTries 1