Merge pull request #84602 from alyssais/ssh

nixos/ssh: don't accept ssh-dss keys
This commit is contained in:
edef 2020-04-10 16:05:36 +00:00 committed by GitHub
commit 6fbacea8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.