nixos/ssh: don't accept ssh-dss keys
These have been deprecated long enough. I think this default was even made non-functional by 2337c7522af3b186d4d7ecefe9e19c33aafc6626. But it's still a scary thing to see there. Fixes https://github.com/NixOS/nixpkgs/issues/33381.
This commit is contained in:
parent
d7b98129fe
commit
387b9bf352
@ -61,12 +61,9 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow DSA keys for now. (These were deprecated in OpenSSH 7.0.)
|
|
||||||
pubkeyAcceptedKeyTypes = mkOption {
|
pubkeyAcceptedKeyTypes = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [
|
default = [];
|
||||||
"+ssh-dss"
|
|
||||||
];
|
|
||||||
example = [ "ssh-ed25519" "ssh-rsa" ];
|
example = [ "ssh-ed25519" "ssh-rsa" ];
|
||||||
description = ''
|
description = ''
|
||||||
Specifies the key types that will be used for public key authentication.
|
Specifies the key types that will be used for public key authentication.
|
||||||
@ -75,9 +72,7 @@ in
|
|||||||
|
|
||||||
hostKeyAlgorithms = mkOption {
|
hostKeyAlgorithms = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [
|
default = [];
|
||||||
"+ssh-dss"
|
|
||||||
];
|
|
||||||
example = [ "ssh-ed25519" "ssh-rsa" ];
|
example = [ "ssh-ed25519" "ssh-rsa" ];
|
||||||
description = ''
|
description = ''
|
||||||
Specifies the host key algorithms that the client wants to use in order of preference.
|
Specifies the host key algorithms that the client wants to use in order of preference.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user