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
|
||||
pinentryPackage = lib.mkForce pkgs.pinentry-qt;
|
||||
};
|
||||
ssh = {
|
||||
kexAlgorithms = [
|
||||
"sntrup761x25519-sha512@openssh.com"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
@ -175,6 +180,9 @@ in
|
|||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PubKeyAuthentication = true;
|
||||
KexAlgorithms = [
|
||||
"sntrup761x25519-sha512@openssh.com"
|
||||
];
|
||||
};
|
||||
extraConfig = ''
|
||||
AllowTcpForwarding yes
|
||||
|
|
Loading…
Add table
Reference in a new issue