Lock down ssh kex
This commit is contained in:
parent
02b8cc5f10
commit
ad64649a4a
1 changed files with 8 additions and 0 deletions
|
@ -159,6 +159,11 @@ in
|
||||||
# enableSSHSupport = true; # breaks gitea foo
|
# enableSSHSupport = true; # breaks gitea foo
|
||||||
pinentryPackage = lib.mkForce pkgs.pinentry-qt;
|
pinentryPackage = lib.mkForce pkgs.pinentry-qt;
|
||||||
};
|
};
|
||||||
|
ssh = {
|
||||||
|
kexAlgorithms = [
|
||||||
|
"sntrup761x25519-sha512@openssh.com"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -175,6 +180,9 @@ in
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
PubKeyAuthentication = true;
|
PubKeyAuthentication = true;
|
||||||
|
KexAlgorithms = [
|
||||||
|
"sntrup761x25519-sha512@openssh.com"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
AllowTcpForwarding yes
|
AllowTcpForwarding yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue